diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-11-08 17:51:52 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-11-08 17:51:52 +0000 |
commit | cb236290e267f17d5f81a18d742b81f1b74b05a2 (patch) | |
tree | e6c74acdaa0881bb8accab285d77f146381b2f81 /rcfile_y.y | |
parent | 7b11f0ff9972d8046e69f98948fdab26b5199caf (diff) | |
download | fetchmail-cb236290e267f17d5f81a18d742b81f1b74b05a2.tar.gz fetchmail-cb236290e267f17d5f81a18d742b81f1b74b05a2.tar.bz2 fetchmail-cb236290e267f17d5f81a18d742b81f1b74b05a2.zip |
Prototypes everywhere.
svn path=/trunk/; revision=515
Diffstat (limited to 'rcfile_y.y')
-rw-r--r-- | rcfile_y.y | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -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 */ |