Systemd/coccinelle
Lennart Poettering 57ea45e11a util-lib: introduce new empty_or_root() helper (#8746)
We check the same condition at various places. Let's add a trivial,
common helper for this, and use it everywhere.

It's not going to make things much faster or much shorter, but I think a
lot more readable
2018-04-18 14:20:49 +02:00
..
close-above-stdio.cocci
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
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.cocci
mfree_return.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 run-coccinelle.sh: use set -x for showing command line of "spatch" 2018-03-23 15:46:12 +01: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