diff options
Diffstat (limited to 'usr.bin/mk_cmds/mk_cmds.c')
-rw-r--r-- | usr.bin/mk_cmds/mk_cmds.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.bin/mk_cmds/mk_cmds.c b/usr.bin/mk_cmds/mk_cmds.c index 8298859..1c3a3fb 100644 --- a/usr.bin/mk_cmds/mk_cmds.c +++ b/usr.bin/mk_cmds/mk_cmds.c @@ -26,6 +26,7 @@ extern FILE *output_file; extern FILE *yyin, *yyout; extern int yylineno; +int main(argc, argv) int argc; char **argv; @@ -85,10 +86,12 @@ main(argc, argv) return result; } +int yyerror(s) char *s; { fputs(s, stderr); fprintf(stderr, "\nLine %d; last token was '%s'\n", yylineno, last_token); + return 0; } |