aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Wieck <JanWieck@Yahoo.com>2000-02-04 18:45:23 +0000
committerJan Wieck <JanWieck@Yahoo.com>2000-02-04 18:45:23 +0000
commit74d53d7838872807099479933553f1dedcd33212 (patch)
tree46ab78766867e35aed8880ec26f0af8afc1f445d /src
parentdf035f762acfac08a65d0f7d2152128530ac8ccc (diff)
downloadpostgresql-74d53d7838872807099479933553f1dedcd33212.tar.gz
postgresql-74d53d7838872807099479933553f1dedcd33212.zip
Made prototypes for yyerror() consistent with Bruce's last changes
Jan
Diffstat (limited to 'src')
-rw-r--r--src/interfaces/ecpg/preproc/extern.h2
-rw-r--r--src/interfaces/ecpg/preproc/preproc.y2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/ecpg/preproc/extern.h b/src/interfaces/ecpg/preproc/extern.h
index 682ead43ec8..9aae32af26d 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 7b8d16f31a4..28b66abb24a 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);
}