mirror of
https://github.com/systemd/systemd.git
synced 2024-12-28 11:21:59 +03:00
ccd52940d0
Some transformations generate results we don't want to keep, so let's disable such transformations for specific files. Also, disable const-strlen.cocci everywhere, as the STRLEN macro has a pretty limited scope, so the transformation generates false positives in most cases.
15 lines
107 B
Plaintext
15 lines
107 B
Plaintext
@@
|
|
constant s;
|
|
@@
|
|
(
|
|
#define STRLEN
|
|
&
|
|
- sizeof(s)-1
|
|
+ STRLEN(s)
|
|
)
|
|
@@
|
|
constant s;
|
|
@@
|
|
- strlen(s)
|
|
+ STRLEN(s)
|