diff options
Diffstat (limited to 'admin/coccinelle')
| -rw-r--r-- | admin/coccinelle/unibyte_string.cocci | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/admin/coccinelle/unibyte_string.cocci b/admin/coccinelle/unibyte_string.cocci new file mode 100644 index 00000000000..0ff8cafa15d --- /dev/null +++ b/admin/coccinelle/unibyte_string.cocci | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | // make_unibyte_string (str, strlen (str)) -> build_unibyte_string (str) | ||
| 2 | @@ | ||
| 3 | identifier I; | ||
| 4 | @@ | ||
| 5 | - make_unibyte_string (I, strlen (I)) | ||
| 6 | + build_unibyte_string (I) | ||