Fix all implicit declarations

AC_HEADER_TIME is only needed if you need to include time.h and
sys/time.h at the same time.

The truth is this codebase is an unholy mess but at least this fixes
the warnings.
This commit is contained in:
James Le Cuirot
2020-04-26 20:20:16 +01:00
parent cf6e360a7e
commit d91710ba03
7 changed files with 26 additions and 25 deletions

View File

@@ -8,6 +8,14 @@ void docmd(XEvent *e, void *callback)
((void (*)(Window))callback)(e->xany.window);
}
int yylex();
char *progname;
int yyerror(s) char *s;
{
fprintf (stderr, "%s: error in input file: %s\n", progname, s ? s : "");
return 0;
}
%}
%union
@@ -55,14 +63,6 @@ command : FUNCTION { $$=$1; }
%%
char *progname;
int yyerror(s) char *s;
{
fprintf (stderr, "%s: error in input file: %s\n", progname, s ? s : "");
return 0;
}
int main(int argc, char *argv[])
{
char *arg=md_init(argc, argv);