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 --- disk-utils/fsck.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'disk-utils/fsck.c') diff --git a/disk-utils/fsck.c b/disk-utils/fsck.c index 5a418fc1f..e310fc394 100644 --- a/disk-utils/fsck.c +++ b/disk-utils/fsck.c @@ -54,8 +54,6 @@ #include "c.h" #include "fileutils.h" #include "monotonic.h" - -#define STRTOXX_EXIT_CODE FSCK_EX_USAGE #include "strutils.h" #define XALLOC_EXIT_CODE FSCK_EX_ERROR @@ -1599,6 +1597,7 @@ int main(int argc, char *argv[]) textdomain(PACKAGE); atexit(close_stdout); + strutils_set_exitcode(FSCK_EX_USAGE); mnt_init_debug(0); /* init libmount debug mask */ mntcache = mnt_new_cache(); /* no fatal error if failed */ -- cgit v1.2.3-55-g7522