Add in ifconfig and route
[oweals/busybox.git] / kill.c
diff --git a/kill.c b/kill.c
index 8fa9da77d278f1a598561fe826da4415ca5047f5..00a4d5c402c612b1c1cf9f555caa80b19b9433c0 100644 (file)
--- a/kill.c
+++ b/kill.c
 #include <unistd.h>
 #include <signal.h>
 #include <ctype.h>
+#include <string.h>
 #include <unistd.h>
 
-#define KILL   0
-#define KILLALL        1
+static const int KILL = 0;
+static const int KILLALL = 1;
 
 struct signal_name {
        const char *name;
@@ -222,7 +223,7 @@ extern int kill_main(int argc, char **argv)
                        pidList = find_pid_by_name( *argv);
                        if (!pidList) {
                                all_found = FALSE;
-                               error_msg( "%s: no process killed\n", *argv);
+                               error_msg( "%s: no process killed", *argv);
                        }
 
                        for(; pidList && *pidList!=0; pidList++) {
@@ -245,5 +246,5 @@ extern int kill_main(int argc, char **argv)
 
 
   end:
-       error_msg_and_die( "bad signal name: %s\n", *argv);
+       error_msg_and_die( "bad signal name: %s", *argv);
 }