mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 00:51:24 +03:00
7e985c6983
With these additions, coccinelle finds everything fixed by the first commit in PR #7695. In order not to needlessly conflict with that PR this PR won't include those fixes, but only the coccinelle changes to detect them automatically in the future.
61 lines
659 B
Plaintext
61 lines
659 B
Plaintext
@@
|
|
expression s;
|
|
@@
|
|
- strv_length(s) == 0
|
|
+ strv_isempty(s)
|
|
@@
|
|
expression s;
|
|
@@
|
|
- strv_length(s) <= 0
|
|
+ strv_isempty(s)
|
|
@@
|
|
expression s;
|
|
@@
|
|
- strv_length(s) > 0
|
|
+ !strv_isempty(s)
|
|
@@
|
|
expression s;
|
|
@@
|
|
- strv_length(s) != 0
|
|
+ !strv_isempty(s)
|
|
@@
|
|
expression s;
|
|
@@
|
|
- strlen(s) == 0
|
|
+ isempty(s)
|
|
@@
|
|
expression s;
|
|
@@
|
|
- strlen(s) <= 0
|
|
+ isempty(s)
|
|
@@
|
|
expression s;
|
|
@@
|
|
- strlen(s) > 0
|
|
+ !isempty(s)
|
|
@@
|
|
expression s;
|
|
@@
|
|
- strlen(s) != 0
|
|
+ !isempty(s)
|
|
@@
|
|
expression s;
|
|
@@
|
|
- strlen_ptr(s) == 0
|
|
+ isempty(s)
|
|
@@
|
|
expression s;
|
|
@@
|
|
- strlen_ptr(s) <= 0
|
|
+ isempty(s)
|
|
@@
|
|
expression s;
|
|
@@
|
|
- strlen_ptr(s) > 0
|
|
+ !isempty(s)
|
|
@@
|
|
expression s;
|
|
@@
|
|
- strlen_ptr(s) != 0
|
|
+ !isempty(s)
|