svn commit: trunk/busybox/util-linux
vda at busybox.net
vda at busybox.net
Wed Jan 3 01:36:44 UTC 2007
Author: vda
Date: 2007-01-02 17:36:42 -0800 (Tue, 02 Jan 2007)
New Revision: 17138
Log:
fsck_minix: tiny optimization
Modified:
trunk/busybox/util-linux/fsck_minix.c
Changeset:
Modified: trunk/busybox/util-linux/fsck_minix.c
===================================================================
--- trunk/busybox/util-linux/fsck_minix.c 2007-01-03 00:47:47 UTC (rev 17137)
+++ trunk/busybox/util-linux/fsck_minix.c 2007-01-03 01:36:42 UTC (rev 17138)
@@ -194,20 +194,14 @@
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);
+ bb_error_msg_and_die("%s", str);
}
-static void die(const char *str)
-{
- bb_error_msg("%s", str);
- leave(8);
-}
-
/* File-name data */
enum { MAX_DEPTH = 32 };
static int name_depth;
More information about the busybox-cvs
mailing list