diff options
author | kraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-07-14 01:51:25 +0000 |
---|---|---|
committer | kraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-07-14 01:51:25 +0000 |
commit | ed2dfb60ee4a99850e9e68fb27512a0bab4ba992 (patch) | |
tree | 62127f20fc07758e445d8c4e186306cbe83d77b1 /sed.c | |
parent | f35f4340a4f7ae02b1139ac9f303e5b8081d71e9 (diff) | |
download | busybox-w32-ed2dfb60ee4a99850e9e68fb27512a0bab4ba992.tar.gz busybox-w32-ed2dfb60ee4a99850e9e68fb27512a0bab4ba992.tar.bz2 busybox-w32-ed2dfb60ee4a99850e9e68fb27512a0bab4ba992.zip |
Use errorMsg rather than fprintf.
git-svn-id: svn://busybox.net/trunk/busybox@848 69ca8d6d-28ef-0310-b511-8ec308f3f277
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); |