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 /lib/strutils.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 'lib/strutils.c')
-rw-r--r-- | lib/strutils.c | 6 |
1 files changed, 6 insertions, 0 deletions
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--) { |