From: Sami Kerola Date: Thu, 21 Jul 2011 22:34:12 +0000 (+0200) Subject: include: move fsck return values to exitcodes.h X-Git-Tag: v2.20-rc1~27^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5d6fb944bfb2b2837042338e2225b53261293255;p=thirdparty%2Futil-linux.git include: move fsck return values to exitcodes.h Signed-off-by: Sami Kerola --- diff --git a/disk-utils/fsck.cramfs.c b/disk-utils/fsck.cramfs.c index 50fd5152b3..05425eec07 100644 --- a/disk-utils/fsck.cramfs.c +++ b/disk-utils/fsck.cramfs.c @@ -36,15 +36,6 @@ /* compile-time options */ //#define INCLUDE_FS_TESTS /* include cramfs checking and extraction */ -/* Exit codes used by fsck-type programs */ -#define FSCK_OK 0 /* No errors */ -#define FSCK_NONDESTRUCT 1 /* File system errors corrected */ -#define FSCK_REBOOT 2 /* System should be rebooted */ -#define FSCK_UNCORRECTED 4 /* File system errors left uncorrected */ -#define FSCK_ERROR 8 /* Operational error */ -#define FSCK_USAGE 16 /* Usage or syntax error */ -#define FSCK_LIBRARY 128 /* Shared library error */ - #include #include #include @@ -67,6 +58,7 @@ #include "nls.h" #include "blkdev.h" #include "c.h" +#include "exitcodes.h" #define XALLOC_EXIT_CODE FSCK_ERROR #include "xalloc.h" diff --git a/include/exitcodes.h b/include/exitcodes.h index 1c5240a763..0213aa0c9e 100644 --- a/include/exitcodes.h +++ b/include/exitcodes.h @@ -6,4 +6,13 @@ #define MKFS_ERROR 8 /* Operational error */ #define MKFS_USAGE 16 /* Usage or syntax error */ +/* Exit codes used by fsck-type programs */ +#define FSCK_OK 0 /* No errors */ +#define FSCK_NONDESTRUCT 1 /* File system errors corrected */ +#define FSCK_REBOOT 2 /* System should be rebooted */ +#define FSCK_UNCORRECTED 4 /* File system errors left uncorrected */ +#define FSCK_ERROR 8 /* Operational error */ +#define FSCK_USAGE 16 /* Usage or syntax error */ +#define FSCK_LIBRARY 128 /* Shared library error */ + #endif /* UTIL_LINUX_EXITCODES_H */