diff options
Diffstat (limited to 'grep.c')
-rw-r--r-- | grep.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |