1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-02 19:21:53 +03:00
systemd/coccinelle
Zbigniew Jędrzejewski-Szmek 5d904a6aaa tree-wide: drop !! casts to booleans
They are not needed, because anything that is non-zero is converted
to true.

C11:
> 6.3.1.2: When any scalar value is converted to _Bool, the result is 0 if the
> value compares equal to 0; otherwise, the result is 1.

https://stackoverflow.com/questions/31551888/casting-int-to-bool-in-c-c
2018-06-13 10:52:40 +02:00
..
bool-cast.cocci tree-wide: drop !! casts to booleans 2018-06-13 10:52:40 +02:00
close-above-stdio.cocci util: add new safe_close_above_stdio() wrapper 2018-02-28 10:00:50 +01:00
const-strlen.cocci
debug-logging.cocci
div-round-up.cocci coccinelle: make use of DIV_ROUND_UP() wherever appropriate 2018-03-20 20:59:02 +01:00
dup-fcntl.cocci coccinelle: always use fcntl(fd, FD_DUPFD, 3) instead of dup(fd) 2018-03-20 22:31:14 +01:00
empty-or-root.cocci util-lib: introduce new empty_or_root() helper (#8746) 2018-04-18 14:20:49 +02:00
empty-to-null.cocci
enotsup.cocci
equals-null.cocci
errno.cocci
exit-0.cocci
flags-set.cocci Add macro for checking if some flags are set 2018-06-04 11:50:44 +02:00
free_and_replace.cocci
hashmap_free.cocci
htonl.cocci
in_set.cocci
isempty.cocci
malloc_multiply.cocci coccinelle: similar to reallocarray() let's also systematically use malloc_multiply() 2018-03-02 12:39:07 +01:00
memzero.cocci
mfree_return.cocci
mfree.cocci
no-if-assignments.cocci
not_in_set.cocci
o-ndelay.cocci coccinelle: fix typo in file name (#8640) 2018-04-02 23:30:26 +09:00
reallocarray.cocci coccinelle: add reallocarray() coccinelle script 2018-03-02 12:39:07 +01:00
run-coccinelle.sh cocinelle: use GNU parallel to run spatch 2018-06-13 10:52:33 +02:00
safe_close-no-if.cocci
safe_close.cocci
safe_closedir.cocci
safe_fclose.cocci
strempty.cocci
strjoin.cocci
strjoina.cocci
strv_free.cocci
take-fd.cocci macro: introduce new TAKE_FD() macro 2018-03-22 20:30:40 +01:00
take-ptr.cocci macro: introduce TAKE_PTR() macro 2018-03-22 20:21:42 +01:00
while-true.cocci
xsprintf.cocci