summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2004-09-02 20:53:42 +0000
committerTom Lane2004-09-02 20:53:42 +0000
commite33b8dc802f18f1c89d0677574e02a0934523d84 (patch)
tree2213b271b1609d6ee59ff3a262d51ea2c984cc1f
parent37841abf6675322e29df62de8fbea8ec2df108dd (diff)
Fix ancient declaration inconsistency in cube & seg ... came across a
compiler that warns about it.
-rw-r--r--contrib/cube/cubeparse.y3
-rw-r--r--contrib/seg/segparse.y3
2 files changed, 2 insertions, 4 deletions
diff --git a/contrib/cube/cubeparse.y b/contrib/cube/cubeparse.y
index e996a488c6..c92bc7b474 100644
--- a/contrib/cube/cubeparse.y
+++ b/contrib/cube/cubeparse.y
@@ -13,8 +13,7 @@
#undef yylex /* falure to redefine yylex will result in a call to the */
#define yylex cube_yylex /* wrong scanner when running inside the postgres backend */
-extern int yylex(); /* defined as cube_yylex in cubescan.c */
-extern int errno;
+extern int yylex(void); /* defined as cube_yylex in cubescan.l */
static char *scanbuf;
static int scanbuflen;
diff --git a/contrib/seg/segparse.y b/contrib/seg/segparse.y
index 9ed9dcbdbd..2fef7a1128 100644
--- a/contrib/seg/segparse.y
+++ b/contrib/seg/segparse.y
@@ -10,8 +10,7 @@
#undef yylex /* falure to redefine yylex will result in calling the */
#define yylex seg_yylex /* wrong scanner when running inside postgres backend */
- extern int errno;
- extern int yylex(); /* defined as seg_yylex in segscan.c */
+ extern int yylex(void); /* defined as seg_yylex in segscan.l */
extern int significant_digits( char *str ); /* defined in seg.c */
void seg_yyerror(const char *message);