diff options
-rw-r--r-- | editors/awk.c | 8 |
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"; | |||
461 | static const char EMSG_NO_MATH[] = "Math support is not compiled in"; | 461 | static const char EMSG_NO_MATH[] = "Math support is not compiled in"; |
462 | #endif | 462 | #endif |
463 | 463 | ||
464 | static void syntax_error(const char * const message) { | 464 | static void syntax_error(const char * const message) |
465 | 465 | { | |
466 | fprintf(stderr, "awk: %s:%i: %s\n", programname, lineno, message); | 466 | error_msg("%s:%i: %s", programname, lineno, message); |
467 | awk_exit(1); | 467 | awk_exit(1); |
468 | } | 468 | } |
469 | 469 | ||
@@ -2681,7 +2681,7 @@ extern int awk_main(int argc, char **argv) { | |||
2681 | free(s); | 2681 | free(s); |
2682 | break; | 2682 | break; |
2683 | case 'W': | 2683 | case 'W': |
2684 | fprintf(stderr, "Warning: unrecognized option '-W %s' ignored\n", optarg); | 2684 | error_msg("Warning: unrecognized option '-W %s' ignored\n", optarg); |
2685 | break; | 2685 | break; |
2686 | 2686 | ||
2687 | default: | 2687 | default: |