summaryrefslogtreecommitdiff
path: root/findutils/grep.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-10-01 11:58:38 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-10-01 11:58:38 +0000
commit0c97c9d43707da745fe2bc62ab2a69497ceaf666 (patch)
tree267d0feb99f457b68c09315b3f3aebe8dfd6d411 /findutils/grep.c
parentd65ea39ffc7503807fa95e8840c012a80c83e4f3 (diff)
downloadbusybox-w32-0c97c9d43707da745fe2bc62ab2a69497ceaf666.tar.gz
busybox-w32-0c97c9d43707da745fe2bc62ab2a69497ceaf666.tar.bz2
busybox-w32-0c97c9d43707da745fe2bc62ab2a69497ceaf666.zip
'simple' error message functions by Loic Grenie <loic.grenie@gmail.com>.
263 bytes saved.
Diffstat (limited to 'findutils/grep.c')
-rw-r--r--findutils/grep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/findutils/grep.c b/findutils/grep.c
index 3a9c74073..2d886a025 100644
--- a/findutils/grep.c
+++ b/findutils/grep.c
@@ -369,7 +369,7 @@ static int file_action_grep(const char *filename, struct stat *statbuf, void* ma
369 FILE *file = fopen(filename, "r"); 369 FILE *file = fopen(filename, "r");
370 if (file == NULL) { 370 if (file == NULL) {
371 if (!SUPPRESS_ERR_MSGS) 371 if (!SUPPRESS_ERR_MSGS)
372 bb_perror_msg("%s", cur_file); 372 bb_simple_perror_msg(cur_file);
373 open_errors = 1; 373 open_errors = 1;
374 return 0; 374 return 0;
375 } 375 }
@@ -517,7 +517,7 @@ int grep_main(int argc, char **argv)
517 file = fopen(cur_file, "r"); 517 file = fopen(cur_file, "r");
518 if (file == NULL) { 518 if (file == NULL) {
519 if (!SUPPRESS_ERR_MSGS) 519 if (!SUPPRESS_ERR_MSGS)
520 bb_perror_msg("%s", cur_file); 520 bb_simple_perror_msg(cur_file);
521 open_errors = 1; 521 open_errors = 1;
522 continue; 522 continue;
523 } 523 }