From: Jan Wieck Date: Fri, 4 Feb 2000 18:45:23 +0000 (+0000) Subject: Made prototypes for yyerror() consistent with Bruce's last changes X-Git-Tag: REL7_0~700 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=74d53d7838872807099479933553f1dedcd33212;p=postgresql Made prototypes for yyerror() consistent with Bruce's last changes Jan --- diff --git a/src/interfaces/ecpg/preproc/extern.h b/src/interfaces/ecpg/preproc/extern.h index 682ead43ec..9aae32af26 100644 --- a/src/interfaces/ecpg/preproc/extern.h +++ b/src/interfaces/ecpg/preproc/extern.h @@ -37,7 +37,7 @@ extern void lex_init(void); extern char *input_filename; extern int yyparse(void); extern int yylex(void); -extern void yyerror(char *); +extern void yyerror(const char * error); extern void *mm_alloc(size_t), *mm_realloc(void *, size_t); extern char *mm_strdup(const char *); extern void mmerror(enum errortype, char * ); diff --git a/src/interfaces/ecpg/preproc/preproc.y b/src/interfaces/ecpg/preproc/preproc.y index 7b8d16f31a..28b66abb24 100644 --- a/src/interfaces/ecpg/preproc/preproc.y +++ b/src/interfaces/ecpg/preproc/preproc.y @@ -5428,7 +5428,7 @@ blockend : '}' { %% -void yyerror(char * error) +void yyerror(const char * error) { mmerror(ET_ERROR, error); }