Static-ify a variable. make du work with all the human-readable variants
[oweals/busybox.git] / reboot.c
index 2f8b2b4a5275487b25e58dd893c2985c748aea1c..3e5f2382c1cf363e1205e5452f4fa08598c21486 100644 (file)
--- a/reboot.c
+++ b/reboot.c
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <signal.h>
 
 extern int reboot_main(int argc, char **argv)
 {
 #ifdef BB_FEATURE_LINUXRC
        /* don't assume init's pid == 1 */
-       exit(kill(findPidByName("init"), SIGINT));
+       return(kill(*(find_pid_by_name("init")), SIGINT));
 #else
-       exit(kill(1, SIGINT));
+       return(kill(1, SIGINT));
 #endif
 }