chiark / gitweb /
tree-wide: drop a few == NULL and != NULL comparison
authorLennart Poettering <lennart@poettering.net>
Fri, 8 Dec 2017 19:52:38 +0000 (20:52 +0100)
committerSven Eden <yamakuzure@gmx.net>
Fri, 8 Dec 2017 19:52:38 +0000 (20:52 +0100)
commitb3826e3b2bd8b5b8eb5365ff084fdc701932f9da
tree800a99745bc6b70af31e70475a78c05c38415a6d
parent2f0634c5b8b3c1dc31a6860a1fbf7b8955dab6e8
tree-wide: drop a few == NULL and != NULL comparison

Our CODING_STYLE suggests not comparing with NULL, but relying on C's
downgrade-to-bool feature for that. Fix up some code to match these
guidelines. (This is not comprehensive, the coccinelle output for this
is unfortunately kinda borked)
coccinelle/equals-null.cocci [new file with mode: 0644]
src/basic/fileio.c
src/basic/path-util.c
src/basic/time-util.c