mirror of
https://github.com/sheumann/hush.git
synced 2025-01-14 12:30:40 +00:00
Use erorr_msg( isntead of fprintf(stderr,
This commit is contained in:
parent
d211214d42
commit
d4036f86e5
@ -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";
|
static const char EMSG_NO_MATH[] = "Math support is not compiled in";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void syntax_error(const char * const message) {
|
static void syntax_error(const char * const message)
|
||||||
|
{
|
||||||
fprintf(stderr, "awk: %s:%i: %s\n", programname, lineno, message);
|
error_msg("%s:%i: %s", programname, lineno, message);
|
||||||
awk_exit(1);
|
awk_exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2681,7 +2681,7 @@ extern int awk_main(int argc, char **argv) {
|
|||||||
free(s);
|
free(s);
|
||||||
break;
|
break;
|
||||||
case 'W':
|
case 'W':
|
||||||
fprintf(stderr, "Warning: unrecognized option '-W %s' ignored\n", optarg);
|
error_msg("Warning: unrecognized option '-W %s' ignored\n", optarg);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user