diff options
Diffstat (limited to 'sed.c')
-rw-r--r-- | sed.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -207,8 +207,8 @@ static int get_address(const char *str, int *line, regex_t **regex) | |||
207 | idx++; /* so it points to the next character after the last '/' */ | 207 | idx++; /* so it points to the next character after the last '/' */ |
208 | } | 208 | } |
209 | else { | 209 | else { |
210 | fprintf(stderr, "sed.c:get_address: no address found in string\n"); | 210 | errorMsg("get_address: no address found in string\n" |
211 | fprintf(stderr, "\t(you probably didn't check the string you passed me)\n"); | 211 | "\t(you probably didn't check the string you passed me)\n"); |
212 | idx = -1; | 212 | idx = -1; |
213 | } | 213 | } |
214 | 214 | ||
@@ -612,7 +612,7 @@ extern int sed_main(int argc, char **argv) | |||
612 | for (i = optind; i < argc; i++) { | 612 | for (i = optind; i < argc; i++) { |
613 | file = fopen(argv[i], "r"); | 613 | file = fopen(argv[i], "r"); |
614 | if (file == NULL) { | 614 | if (file == NULL) { |
615 | fprintf(stderr, "sed: %s: %s\n", argv[i], strerror(errno)); | 615 | errorMsg("%s: %s\n", argv[i], strerror(errno)); |
616 | } else { | 616 | } else { |
617 | process_file(file); | 617 | process_file(file); |
618 | fclose(file); | 618 | fclose(file); |