From 9c8b9fbacc043164c5ac8adc2b5bdc25402e912c Mon Sep 17 00:00:00 2001 From: Ruediger Meier Date: Thu, 22 Jun 2017 22:15:14 +0200 Subject: 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 --- sys-utils/tunelp.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sys-utils/tunelp.c') 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); -- cgit v1.2.3-55-g7522