projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87033fb
)
fsck_minix: tiny optimization
author
Denis Vlasenko
<vda.linux@googlemail.com>
Wed, 3 Jan 2007 01:36:42 +0000
(
01:36
-0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Wed, 3 Jan 2007 01:36:42 +0000
(
01:36
-0000)
util-linux/fsck_minix.c
patch
|
blob
|
history
diff --git
a/util-linux/fsck_minix.c
b/util-linux/fsck_minix.c
index de04a8003b9424c5c27b6b4900167747f21887e9..e2341ced12e184f83a64bd1c40405c1f58d42c52 100644
(file)
--- 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 */