diff options
author | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-06-07 20:17:41 +0000 |
---|---|---|
committer | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-06-07 20:17:41 +0000 |
commit | f4532f9fd377898c339aaa81cde66c14808248dd (patch) | |
tree | 6e35288c247102998a775cbc16f9ec014e00e7fd /findutils/grep.c | |
parent | 2ce533f0b2a79abdfb07d8879afe08f697278158 (diff) | |
download | busybox-w32-f4532f9fd377898c339aaa81cde66c14808248dd.tar.gz busybox-w32-f4532f9fd377898c339aaa81cde66c14808248dd.tar.bz2 busybox-w32-f4532f9fd377898c339aaa81cde66c14808248dd.zip |
- reuse strings and messages. Saves about 600B
git-svn-id: svn://busybox.net/trunk/busybox@15325 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'findutils/grep.c')
-rw-r--r-- | findutils/grep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/findutils/grep.c b/findutils/grep.c index a24be248b..ecb1d0457 100644 --- a/findutils/grep.c +++ b/findutils/grep.c | |||
@@ -313,12 +313,12 @@ int grep_main(int argc, char **argv) | |||
313 | if(opt & GREP_OPT_A) { | 313 | if(opt & GREP_OPT_A) { |
314 | lines_after = strtoul(slines_after, &junk, 10); | 314 | lines_after = strtoul(slines_after, &junk, 10); |
315 | if(*junk != '\0') | 315 | if(*junk != '\0') |
316 | bb_error_msg_and_die("invalid context length argument"); | 316 | bb_error_msg_and_die(bb_msg_invalid_arg, slines_after, "-A"); |
317 | } | 317 | } |
318 | if(opt & GREP_OPT_B) { | 318 | if(opt & GREP_OPT_B) { |
319 | lines_before = strtoul(slines_before, &junk, 10); | 319 | lines_before = strtoul(slines_before, &junk, 10); |
320 | if(*junk != '\0') | 320 | if(*junk != '\0') |
321 | bb_error_msg_and_die("invalid context length argument"); | 321 | bb_error_msg_and_die(bb_msg_invalid_arg, slines_before, "-B"); |
322 | } | 322 | } |
323 | /* sanity checks after parse may be invalid numbers ;-) */ | 323 | /* sanity checks after parse may be invalid numbers ;-) */ |
324 | if ((opt & (GREP_OPT_c|GREP_OPT_q|GREP_OPT_l|GREP_OPT_L))) { | 324 | if ((opt & (GREP_OPT_c|GREP_OPT_q|GREP_OPT_l|GREP_OPT_L))) { |