diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-03-17 08:42:43 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-03-17 08:42:43 +0000 |
commit | cdf62770af9e8bf7d5bb2344ddef8acb3216cfe2 (patch) | |
tree | f3c72eba4318ead484dfb36c6e21d55f443c5f6b /procps | |
parent | 107fe7c081c2e0ab96628b431d9d812cdf9c82b2 (diff) | |
download | busybox-w32-cdf62770af9e8bf7d5bb2344ddef8acb3216cfe2.tar.gz busybox-w32-cdf62770af9e8bf7d5bb2344ddef8acb3216cfe2.tar.bz2 busybox-w32-cdf62770af9e8bf7d5bb2344ddef8acb3216cfe2.zip |
dos2unix: tiny shrink
login,su: fix setup_environment() so that it works as intended
(parameter names were a bit misleading)
fdisk: shrink
help text: shrink
function old new delta
login_main 1658 1701 +43
setup_environment 206 203 -3
dos_compatible_flag 4 1 -3
dos2unix_main 383 375 -8
get_boot 1724 1702 -22
fdisk_main 2949 2889 -60
packed_usage 24250 23948 -302
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/6 up/down: 43/-398) Total: -355 bytes
text data bss dec hex filename
798768 661 7428 806857 c4fc9 busybox_old
798327 658 7428 806413 c4e0d busybox_unstripped
Diffstat (limited to 'procps')
-rw-r--r-- | procps/pgrep.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/procps/pgrep.c b/procps/pgrep.c index 2ebcca1c0..e4dfacb54 100644 --- a/procps/pgrep.c +++ b/procps/pgrep.c | |||
@@ -72,8 +72,9 @@ int pgrep_main(int argc, char **argv) | |||
72 | first_arg = argv[first_arg_idx]; | 72 | first_arg = argv[first_arg_idx]; |
73 | if (!first_arg) | 73 | if (!first_arg) |
74 | break; | 74 | break; |
75 | /* not "-<small_letter>..."? */ | ||
75 | if (first_arg[0] != '-' || first_arg[1] < 'a' || first_arg[1] > 'z') { | 76 | if (first_arg[0] != '-' || first_arg[1] < 'a' || first_arg[1] > 'z') { |
76 | argv[first_arg_idx] = NULL; | 77 | argv[first_arg_idx] = NULL; /* terminate argv here */ |
77 | break; | 78 | break; |
78 | } | 79 | } |
79 | first_arg_idx++; | 80 | first_arg_idx++; |