aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2002-11-28 09:30:40 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2002-11-28 09:30:40 +0000
commitd4036f86e579be4e1911507a72f161b18fdfd28d (patch)
tree9de231359eeb8de4af5d45d7344420d6d8c1cefc /editors
parentd211214d42e1a2a8899510223674f0122b6c1ca7 (diff)
downloadbusybox-d4036f86e579be4e1911507a72f161b18fdfd28d.tar.gz
Use erorr_msg( isntead of fprintf(stderr,
Diffstat (limited to 'editors')
-rw-r--r--editors/awk.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/editors/awk.c b/editors/awk.c
index 968fa028a..aea852b0d 100644
--- a/editors/awk.c
+++ b/editors/awk.c
@@ -461,9 +461,9 @@ static const char EMSG_UNDEF_FUNC[] = "Call to undefined function";
static const char EMSG_NO_MATH[] = "Math support is not compiled in";
#endif
-static void syntax_error(const char * const message) {
-
- fprintf(stderr, "awk: %s:%i: %s\n", programname, lineno, message);
+static void syntax_error(const char * const message)
+{
+ error_msg("%s:%i: %s", programname, lineno, message);
awk_exit(1);
}
@@ -2681,7 +2681,7 @@ extern int awk_main(int argc, char **argv) {
free(s);
break;
case 'W':
- fprintf(stderr, "Warning: unrecognized option '-W %s' ignored\n", optarg);
+ error_msg("Warning: unrecognized option '-W %s' ignored\n", optarg);
break;
default: