diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-06-27 05:46:29 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-06-27 05:46:29 +0000 |
commit | 0196e2600734d0c1deb4807b0d545a562537bc80 (patch) | |
tree | bb03ba5e82662669389831af0ea3ea8c1565ff53 | |
parent | 205fa94ad30d900bd2ffbd2ed01494b4ddb1e01c (diff) | |
download | busybox-w32-0196e2600734d0c1deb4807b0d545a562537bc80.tar.gz busybox-w32-0196e2600734d0c1deb4807b0d545a562537bc80.tar.bz2 busybox-w32-0196e2600734d0c1deb4807b0d545a562537bc80.zip |
Remove bdflush garbage, which is only relevant to unsupported
kernel versions
git-svn-id: svn://busybox.net/trunk/busybox@6988 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | init/init.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/init/init.c b/init/init.c index 8adff1cd2..d51d29156 100644 --- a/init/init.c +++ b/init/init.c | |||
@@ -102,12 +102,6 @@ struct serial_struct { | |||
102 | 102 | ||
103 | #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c)) | 103 | #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c)) |
104 | 104 | ||
105 | #if __GNU_LIBRARY__ > 5 | ||
106 | #include <sys/kdaemon.h> | ||
107 | #else | ||
108 | extern int bdflush(int func, long int data); | ||
109 | #endif | ||
110 | |||
111 | #define SHELL "/bin/sh" /* Default shell */ | 105 | #define SHELL "/bin/sh" /* Default shell */ |
112 | #define LOGIN_SHELL "-" SHELL /* Default login shell */ | 106 | #define LOGIN_SHELL "-" SHELL /* Default login shell */ |
113 | #define INITTAB "/etc/inittab" /* inittab file location */ | 107 | #define INITTAB "/etc/inittab" /* inittab file location */ |
@@ -716,11 +710,6 @@ static void shutdown_system(void) | |||
716 | sleep(1); | 710 | sleep(1); |
717 | 711 | ||
718 | sync(); | 712 | sync(); |
719 | if (kernelVersion > 0 && kernelVersion <= KERNEL_VERSION(2, 2, 11)) { | ||
720 | /* bdflush, kupdate not needed for kernels >2.2.11 */ | ||
721 | bdflush(1, 0); | ||
722 | sync(); | ||
723 | } | ||
724 | } | 713 | } |
725 | 714 | ||
726 | static void exec_signal(int sig) | 715 | static void exec_signal(int sig) |