projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
I don't need to have my email adder listed twice
[oweals/busybox.git]
/
procps
/
kill.c
diff --git
a/procps/kill.c
b/procps/kill.c
index f11623e0119d13a7bed1501eebd3ae7ba3faffe7..22bb98a120d4c014970626906c8f472706483149 100644
(file)
--- a/
procps/kill.c
+++ b/
procps/kill.c
@@
-32,8
+32,8
@@
#include <unistd.h>
#include "busybox.h"
#include <unistd.h>
#include "busybox.h"
-static const int KILL = 0;
-static const int KILLALL = 1;
+#define KILL 0
+#define KILLALL 1
extern int kill_main(int argc, char **argv)
{
extern int kill_main(int argc, char **argv)
{
@@
-43,7
+43,7
@@
extern int kill_main(int argc, char **argv)
#ifdef CONFIG_KILLALL
/* Figure out what we are trying to do here */
#ifdef CONFIG_KILLALL
/* Figure out what we are trying to do here */
- whichApp = (strcmp(bb_applet_name, "killall") == 0)? KILLALL : KILL;
+ whichApp = (strcmp(bb_applet_name, "killall") == 0)? KILLALL : KILL;
#else
whichApp = KILL;
#endif
#else
whichApp = KILL;
#endif
@@
-91,7
+91,7
@@
extern int kill_main(int argc, char **argv)
quiet++;
argv++;
argc--;
quiet++;
argv++;
argc--;
- if(argv[1][0] != '-'){
+ if(arg
c<2 || arg
v[1][0] != '-'){
goto do_it_now;
}
}
goto do_it_now;
}
}
@@
-118,7
+118,7
@@
do_it_now:
argv++;
}
argv++;
}
- }
+ }
#ifdef CONFIG_KILLALL
else {
pid_t myPid=getpid();
#ifdef CONFIG_KILLALL
else {
pid_t myPid=getpid();