From 74d53d7838872807099479933553f1dedcd33212 Mon Sep 17 00:00:00 2001 From: Jan Wieck Date: Fri, 4 Feb 2000 18:45:23 +0000 Subject: [PATCH] Made prototypes for yyerror() consistent with Bruce's last changes Jan --- src/interfaces/ecpg/preproc/extern.h | 2 +- src/interfaces/ecpg/preproc/preproc.y | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); }