]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/analyze/analyze-blame.c
analyze: allow verbs to return positive failure
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 17 May 2022 14:25:06 +0000 (16:25 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 19 May 2022 06:02:29 +0000 (08:02 +0200)
commitfddad5f4a66a68682892e3fa7f22ec2689786d33
treedfd8b2ff5409ef8cf24f4d8b8e5d4de8236bc4ef
parentd5dcd00ba23e13b29bf9b8ad296f164a962825b5
analyze: allow verbs to return positive failure

No functional change is intended. The verbs where it wasn't immediately
clear if the success exit status is 0 or >= 0 are changed to explicitly
return 0. (I think it's better to be explicit than to rely on some call
stack always returning 0 on success.)

Some other functions are cleaned up to be more idiomatic.
19 files changed:
src/analyze/analyze-blame.c
src/analyze/analyze-calendar.c
src/analyze/analyze-capability.c
src/analyze/analyze-cat-config.c
src/analyze/analyze-condition.c
src/analyze/analyze-critical-chain.c
src/analyze/analyze-dump.c
src/analyze/analyze-exit-status.c
src/analyze/analyze-filesystems.c
src/analyze/analyze-log-control.c
src/analyze/analyze-plot.c
src/analyze/analyze-service-watchdogs.c
src/analyze/analyze-syscall-filter.c
src/analyze/analyze-time.c
src/analyze/analyze-timestamp.c
src/analyze/analyze-unit-files.c
src/analyze/analyze-unit-paths.c
src/analyze/analyze.c
src/shared/verb-log-control.c