aboutsummaryrefslogtreecommitdiff
path: root/grep.c
diff options
context:
space:
mode:
Diffstat (limited to 'grep.c')
-rw-r--r--grep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/grep.c b/grep.c
index 77b510002..03945fa25 100644
--- a/grep.c
+++ b/grep.c
@@ -165,7 +165,7 @@ extern int grep_main(int argc, char **argv)
165 file = fopen(cur_file, "r"); 165 file = fopen(cur_file, "r");
166 if (file == NULL) { 166 if (file == NULL) {
167 if (!suppress_err_msgs) 167 if (!suppress_err_msgs)
168 fprintf(stderr, "grep: %s: %s\n", cur_file, strerror(errno)); 168 errorMsg("%s: %s\n", cur_file, strerror(errno));
169 } else { 169 } else {
170 grep_file(file); 170 grep_file(file);
171 fclose(file); 171 fclose(file);