aboutsummaryrefslogtreecommitdiff
path: root/contrib/seg/seg.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/seg/seg.c')
-rw-r--r--contrib/seg/seg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/seg/seg.c b/contrib/seg/seg.c
index 0a787ff9462..41a18077404 100644
--- a/contrib/seg/seg.c
+++ b/contrib/seg/seg.c
@@ -24,8 +24,8 @@
PG_MODULE_MAGIC;
-extern int seg_yyparse();
-extern void seg_yyerror(const char *message);
+extern int seg_yyparse(SEG *result);
+extern void seg_yyerror(SEG *result, const char *message);
extern void seg_scanner_init(const char *str);
extern void seg_scanner_finish(void);
@@ -127,7 +127,7 @@ seg_in(PG_FUNCTION_ARGS)
seg_scanner_init(str);
if (seg_yyparse(result) != 0)
- seg_yyerror("bogus input");
+ seg_yyerror(result, "bogus input");
seg_scanner_finish();