diff options
author | Karel Zak | 2017-06-26 13:47:04 +0200 |
---|---|---|
committer | Karel Zak | 2017-06-26 13:47:04 +0200 |
commit | dfdb1ca8186cfc84ad95d5e356334ce8633a28f7 (patch) | |
tree | 37b568d27fa12194ec63f8122901fc8b2fd7bf1d /sys-utils/hwclock.c | |
parent | Merge branch 'usage-part1' of https://github.com/rudimeier/util-linux (diff) | |
parent | misc: fix optutils.h related exit codes (diff) | |
download | kernel-qcow2-util-linux-dfdb1ca8186cfc84ad95d5e356334ce8633a28f7.tar.gz kernel-qcow2-util-linux-dfdb1ca8186cfc84ad95d5e356334ce8633a28f7.tar.xz kernel-qcow2-util-linux-dfdb1ca8186cfc84ad95d5e356334ce8633a28f7.zip |
Merge branch 'fix-exit-codes' of https://github.com/rudimeier/util-linux
* 'fix-exit-codes' of https://github.com/rudimeier/util-linux:
misc: fix optutils.h related exit codes
misc: fix xalloc.h related exit codes
misc: fix more strutils related exit codes
lib: fix strutils.h, remove STRTOXX_EXIT_CODE
misc: fix some broken exit codes
Diffstat (limited to 'sys-utils/hwclock.c')
-rw-r--r-- | sys-utils/hwclock.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys-utils/hwclock.c b/sys-utils/hwclock.c index 0f604960c..07ad61385 100644 --- a/sys-utils/hwclock.c +++ b/sys-utils/hwclock.c @@ -71,6 +71,7 @@ #include <unistd.h> #define OPTUTILS_EXIT_CODE EX_USAGE +#define XALLOC_EXIT_CODE EX_OSERR #include "c.h" #include "closestream.h" @@ -1326,6 +1327,8 @@ int main(int argc, char **argv) }; int excl_st[ARRAY_SIZE(excl)] = UL_EXCL_STATUS_INIT; + strutils_set_exitcode(EX_USAGE); + /* Remember what time we were invoked */ gettimeofday(&startup_time, NULL); |