diff options
author | Ruediger Meier | 2017-06-22 22:16:14 +0200 |
---|---|---|
committer | Ruediger Meier | 2017-06-22 22:40:21 +0200 |
commit | 0b2b32e8a7a6aed1e3ff1cfc3f63cf33361a67b8 (patch) | |
tree | 7a8b7e4642ff4e9d70262da8592a6ac7a8f7cee3 /sys-utils/flock.c | |
parent | lib: fix strutils.h, remove STRTOXX_EXIT_CODE (diff) | |
download | kernel-qcow2-util-linux-0b2b32e8a7a6aed1e3ff1cfc3f63cf33361a67b8.tar.gz kernel-qcow2-util-linux-0b2b32e8a7a6aed1e3ff1cfc3f63cf33361a67b8.tar.xz kernel-qcow2-util-linux-0b2b32e8a7a6aed1e3ff1cfc3f63cf33361a67b8.zip |
misc: fix more strutils related exit codes
Found by grep:
grep -l "\bEXIT_\|exit *( *[0-9][0-9] *)\|strutils\.h" $(grep -L \
strutils_set_exitcode $(git grep -l "_EX_\|FINDFS_\|BLKID_EXIT\|EX_USAGE" -- "*.c"))
The Command shows also some false positives (fstrim.c,
context_mount.c, ...)
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'sys-utils/flock.c')
-rw-r--r-- | sys-utils/flock.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys-utils/flock.c b/sys-utils/flock.c index 50194bdb9..003a12618 100644 --- a/sys-utils/flock.c +++ b/sys-utils/flock.c @@ -170,6 +170,8 @@ int main(int argc, char *argv[]) textdomain(PACKAGE); atexit(close_stdout); + strutils_set_exitcode(EX_USAGE); + if (argc < 2) usage(EX_USAGE); |