diff options
author | Eric Andersen | 2003-07-22 08:56:55 +0000 |
---|---|---|
committer | Eric Andersen | 2003-07-22 08:56:55 +0000 |
commit | 85e5e72bc1acd9d58c11bde6e14c8270cd9f169f (patch) | |
tree | 9971c6951256dd0bba5ff2a7db08ed6f65ef218d /init/reboot.c | |
parent | 0a14c9f924eaf6a64e78959a190d187d646b3c0c (diff) | |
download | busybox-85e5e72bc1acd9d58c11bde6e14c8270cd9f169f.zip busybox-85e5e72bc1acd9d58c11bde6e14c8270cd9f169f.tar.gz |
Remove remaining libc5 support code
Diffstat (limited to 'init/reboot.c')
-rw-r--r-- | init/reboot.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/init/reboot.c b/init/reboot.c index e9f9ff8..5ca8b58 100644 --- a/init/reboot.c +++ b/init/reboot.c @@ -25,18 +25,11 @@ #include <stdlib.h> #include <unistd.h> #include <getopt.h> - +#include <sys/reboot.h> #include "busybox.h" #include "init_shared.h" -#if (__GNU_LIBRARY__ > 5) || defined(__dietlibc__) - #include <sys/reboot.h> - #define init_reboot(magic) reboot(magic) -#else - #define init_reboot(magic) reboot(0xfee1dead, 672274793, magic) -#endif - #ifndef RB_ENABLE_CAD static const int RB_ENABLE_CAD = 0x89abcdef; static const int RB_AUTOBOOT = 0x01234567; @@ -57,7 +50,7 @@ extern int reboot_main(int argc, char **argv) setpgrp(); /* Allow Ctrl-Alt-Del to reboot system. */ - init_reboot(RB_ENABLE_CAD); + reboot(RB_ENABLE_CAD); message(CONSOLE|LOG, "\n\rThe system is going down NOW !!\n"); sync(); @@ -74,7 +67,7 @@ extern int reboot_main(int argc, char **argv) sync(); - init_reboot(RB_AUTOBOOT); + reboot(RB_AUTOBOOT); return 0; /* Shrug */ #else return kill_init(SIGTERM); |