From cb236290e267f17d5f81a18d742b81f1b74b05a2 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 8 Nov 1996 17:51:52 +0000 Subject: Prototypes everywhere. svn path=/trunk/; revision=515 --- rcfile_y.y | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'rcfile_y.y') diff --git a/rcfile_y.y b/rcfile_y.y index 5cbbc331..ea95dfad 100644 --- a/rcfile_y.y +++ b/rcfile_y.y @@ -153,9 +153,8 @@ extern FILE *yyin; static struct query *hosttail; /* where to add new elements */ -void yyerror (s) +void yyerror (const char *s) /* report a syntax error */ -char *s; /* error string */ { fprintf(stderr,"%s line %d: %s at %s\n", rcfile, prc_lineno, s, yytext); prc_errflag++; @@ -231,7 +230,7 @@ const char *pathname; /* pathname for the configuration file */ return(0); } -static void prc_reset() +static void prc_reset(void) /* clear the global current record (server parameters) used by the parser */ { char savename[HOSTLEN+1]; @@ -278,7 +277,7 @@ struct query *init; /* pointer to block containing initial values */ return(node); } -static void prc_register() +static void prc_register(void) /* register current parameters and append to the host list */ { #define STR_FORCE(fld, len) if (cmd_opts.fld[0]) \ @@ -306,10 +305,8 @@ static void prc_register() (void) hostalloc(¤t); } -void optmerge(h2, h1) +void optmerge(struct query *h2, struct query *h1) /* merge two options records; empty fields in h2 are filled in from h1 */ -struct query *h1; -struct query *h2; { append_uid_list(&h2->localnames, &h1->localnames); @@ -337,6 +334,6 @@ struct query *h2; } /* easier to do this than cope with variations in where the library lives */ -int yywrap() {return 1;} +int yywrap(void) {return 1;} /* rcfile_y.y ends here */ -- cgit v1.2.3