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 --- lib/strutils.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/strutils.c') diff --git a/lib/strutils.c b/lib/strutils.c index 45127b5a2..74d2e5aa9 100644 --- a/lib/strutils.c +++ b/lib/strutils.c @@ -17,6 +17,12 @@ #include "strutils.h" #include "bitops.h" +static int STRTOXX_EXIT_CODE = EXIT_FAILURE; + +void strutils_set_exitcode(int ex) { + STRTOXX_EXIT_CODE = ex; +} + static int do_scale_by_power (uintmax_t *x, int base, int power) { while (power--) { -- cgit v1.2.3-55-g7522