diff options
author | Denis Vlasenko | 2007-05-01 20:07:29 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-05-01 20:07:29 +0000 |
commit | dcf4de20a1904bb31d498b6cc999a37f20b2783d (patch) | |
tree | 9c4c939bb250f37bd4f405b74723824cde1e8d7b /procps/kill.c | |
parent | f20de5bb42f9a4f2c8417f6a1a2db7e2f2cafd5b (diff) | |
download | busybox-dcf4de20a1904bb31d498b6cc999a37f20b2783d.zip busybox-dcf4de20a1904bb31d498b6cc999a37f20b2783d.tar.gz |
test: code size saving, no logic changes
ps: fix warning, make a bit smaller
kill -l: make smaller & know much more signals
function old new delta
get_signum 121 153 +32
kill_main 826 843 +17
get_signame 44 36 -8
signals 252 224 -28
.rodata 131955 131923 -32
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/3 up/down: 49/-68) Total: -19 bytes
Diffstat (limited to 'procps/kill.c')
-rw-r--r-- | procps/kill.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/procps/kill.c b/procps/kill.c index e2b029d..b325749 100644 --- a/procps/kill.c +++ b/procps/kill.c @@ -51,7 +51,9 @@ int kill_main(int argc, char **argv) if (argc == 1) { /* Print the whole signal list */ for (signo = 1; signo < 32; signo++) { - puts(get_signame(signo)); + const char *name = get_signame(signo); + if (!isdigit(name[0])) + puts(name); } } else { /* -l <sig list> */ while ((arg = *++argv)) { |