1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-25 23:21:33 +03:00
systemd-stable/coccinelle/const-strlen.cocci
Lennart Poettering fbd0b64f44
tree-wide: make use of new STRLEN() macro everywhere (#7639)
Let's employ coccinelle to do this for us.

Follow-up for #7625.
2017-12-14 19:02:29 +01:00

11 lines
86 B
Plaintext

@@
constant s;
@@
- sizeof(s)-1
+ STRLEN(s)
@@
constant s;
@@
- strlen(s)
+ STRLEN(s)