]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/main.c
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)
committerLennart Poettering <lennart@poettering.net>
Mon, 11 Dec 2017 15:05:40 +0000 (16:05 +0100)
commit234519ae6d6821ae5e83bcddb211905ef4de5700
tree5335ad6ea093f0829bb871c2cbf83b354e53d402
parent4a0e9289bf443fec9fc56af25f90e2a100ba7a41
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)
15 files changed:
coccinelle/equals-null.cocci [new file with mode: 0644]
src/analyze/analyze-verify.c
src/analyze/analyze.c
src/basic/clock-util.c
src/basic/device-nodes.c
src/basic/ether-addr-util.c
src/basic/fileio.c
src/basic/journal-importer.c
src/basic/path-util.c
src/basic/time-util.c
src/boot/efi/measure.c
src/core/execute.c
src/core/main.c
src/coredump/coredump.c
src/vconsole/vconsole-setup.c