summaryrefslogtreecommitdiff
path: root/util-linux/fsck_minix.c
diff options
context:
space:
mode:
authorDenis Vlasenko2007-01-03 01:36:42 +0000
committerDenis Vlasenko2007-01-03 01:36:42 +0000
commit75fa4eb1551ddc6c4436bb2614f4754ed9942b5f (patch)
treef36cb5a12d749ee73f872e0a794f6886ed2e085f /util-linux/fsck_minix.c
parent87033fb5fadc000c3b1ce7c46a813ad0479f62fc (diff)
downloadbusybox-75fa4eb1551ddc6c4436bb2614f4754ed9942b5f.zip
busybox-75fa4eb1551ddc6c4436bb2614f4754ed9942b5f.tar.gz
fsck_minix: tiny optimization
Diffstat (limited to 'util-linux/fsck_minix.c')
-rw-r--r--util-linux/fsck_minix.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/util-linux/fsck_minix.c b/util-linux/fsck_minix.c
index de04a80..e2341ce 100644
--- a/util-linux/fsck_minix.c
+++ b/util-linux/fsck_minix.c
@@ -194,18 +194,12 @@ static void recursive_check(unsigned ino);
static void recursive_check2(unsigned ino);
#endif
-static void leave(int) ATTRIBUTE_NORETURN;
-static void leave(int status)
+static void die(const char *str) ATTRIBUTE_NORETURN;
+static void die(const char *str)
{
if (termios_set)
tcsetattr(0, TCSANOW, &termios);
- exit(status);
-}
-
-static void die(const char *str)
-{
- bb_error_msg("%s", str);
- leave(8);
+ bb_error_msg_and_die("%s", str);
}
/* File-name data */