summaryrefslogtreecommitdiffstats
path: root/coccinelle/const-strlen.cocci
blob: 38bf9b118fd5d01117edb2046ee0eaf1d49742cd (plain)
1
2
3
4
5
6
7
8
9
10
@@
constant s;
@@
- sizeof(s)-1
+ STRLEN(s)
@@
constant s;
@@
- strlen(s)
+ STRLEN(s)