* archival/bunzip2.c (bunzip2_main): Do not remove files if writing to standard
[oweals/busybox.git] / init / poweroff.c
index eba51342cc62e3903722337c167e22ed46cfacd9..27468bac040b569a7ab78fd36220808ddb0c315f 100644 (file)
@@ -2,8 +2,8 @@
 /*
  * Mini poweroff implementation for busybox
  *
- *
  * Copyright (C) 1995, 1996 by Bruce Perens <bruce@pixar.com>.
+ * Copyright (C) 1999-2002 by Erik Andersen <andersee@debian.org>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
 
 extern int poweroff_main(int argc, char **argv)
 {
-#ifdef BB_FEATURE_LINUXRC
+#ifdef CONFIG_FEATURE_INITRD
        /* don't assume init's pid == 1 */
-       pid_t *pid = find_pid_by_name("init");
+       long *pid = find_pid_by_name("init");
        if (!pid || *pid<=0) {
-               pid_t *pid = find_pid_by_name("linuxrc");
+               pid = find_pid_by_name("linuxrc");
                if (!pid || *pid<=0)
                        error_msg_and_die("no process killed");
        }