1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-24 21:34:08 +03:00
systemd-stable/coccinelle/const-strlen.cocci

11 lines
86 B
Plaintext
Raw Normal View History

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