summaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorMatt Kraai2000-07-14 01:51:25 +0000
committerMatt Kraai2000-07-14 01:51:25 +0000
commitd537a95fdbc0b4a5f38edea8593b4c085fdd7fcb (patch)
tree62127f20fc07758e445d8c4e186306cbe83d77b1 /editors
parent4ac6cb534d78d63d7b0a206118c56bad7024b9f8 (diff)
downloadbusybox-d537a95fdbc0b4a5f38edea8593b4c085fdd7fcb.zip
busybox-d537a95fdbc0b4a5f38edea8593b4c085fdd7fcb.tar.gz
Use errorMsg rather than fprintf.
Diffstat (limited to 'editors')
-rw-r--r--editors/sed.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/editors/sed.c b/editors/sed.c
index 770a56e..3a7360f 100644
--- a/editors/sed.c
+++ b/editors/sed.c
@@ -207,8 +207,8 @@ static int get_address(const char *str, int *line, regex_t **regex)
idx++; /* so it points to the next character after the last '/' */
}
else {
- fprintf(stderr, "sed.c:get_address: no address found in string\n");
- fprintf(stderr, "\t(you probably didn't check the string you passed me)\n");
+ errorMsg("get_address: no address found in string\n"
+ "\t(you probably didn't check the string you passed me)\n");
idx = -1;
}
@@ -612,7 +612,7 @@ extern int sed_main(int argc, char **argv)
for (i = optind; i < argc; i++) {
file = fopen(argv[i], "r");
if (file == NULL) {
- fprintf(stderr, "sed: %s: %s\n", argv[i], strerror(errno));
+ errorMsg("%s: %s\n", argv[i], strerror(errno));
} else {
process_file(file);
fclose(file);