diff options
author | Ruediger Meier | 2017-06-22 22:15:14 +0200 |
---|---|---|
committer | Ruediger Meier | 2017-06-22 22:40:12 +0200 |
commit | 9c8b9fbacc043164c5ac8adc2b5bdc25402e912c (patch) | |
tree | f429c5d472c668b3e4fea28f7ac6ad8eae8b71a5 /sys-utils/tunelp.c | |
parent | misc: fix some broken exit codes (diff) | |
download | kernel-qcow2-util-linux-9c8b9fbacc043164c5ac8adc2b5bdc25402e912c.tar.gz kernel-qcow2-util-linux-9c8b9fbacc043164c5ac8adc2b5bdc25402e912c.tar.xz kernel-qcow2-util-linux-9c8b9fbacc043164c5ac8adc2b5bdc25402e912c.zip |
lib: fix strutils.h, remove STRTOXX_EXIT_CODE
As discussed on the mailing list. We fix all places
where the non-working define STRTOXX_EXIT_CODE was used.
Regarding tunelp, also see 7e3c80a7.
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'sys-utils/tunelp.c')
-rw-r--r-- | sys-utils/tunelp.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys-utils/tunelp.c b/sys-utils/tunelp.c index 89afff1ba..2749dd1c8 100644 --- a/sys-utils/tunelp.c +++ b/sys-utils/tunelp.c @@ -72,13 +72,12 @@ #include "lp.h" #include "nls.h" #include "closestream.h" +#include "strutils.h" #define EXIT_LP_MALLOC 2 -#define STRTOXX_EXIT_CODE 3 +#define EXIT_LP_BADVAL 3 #define EXIT_LP_IO_ERR 4 -#include "strutils.h" - #define XALLOC_EXIT_CODE EXIT_LP_MALLOC #include "xalloc.h" @@ -147,6 +146,8 @@ int main(int argc, char **argv) textdomain(PACKAGE); atexit(close_stdout); + strutils_set_exitcode(EXIT_LP_BADVAL); + if (argc < 2) print_usage(stderr); |