Hi,

attached patch fixes some function declarations:

- () -> (void)
- k&r style -> ansi C

Regards,
Stefan

Index: src/pl/plpgsql/src/pl_funcs.c
===================================================================
RCS file: /projects/cvsroot/pgsql/src/pl/plpgsql/src/pl_funcs.c,v
retrieving revision 1.57
diff -u -u -r1.57 pl_funcs.c
--- src/pl/plpgsql/src/pl_funcs.c	28 Jan 2007 17:58:13 -0000	1.57
+++ src/pl/plpgsql/src/pl_funcs.c	14 Mar 2007 16:17:22 -0000
@@ -474,7 +474,7 @@
  **********************************************************************/
 static int	dump_indent;
 
-static void dump_ind();
+static void dump_ind(void);
 static void dump_stmt(PLpgSQL_stmt *stmt);
 static void dump_block(PLpgSQL_stmt_block *block);
 static void dump_assign(PLpgSQL_stmt_assign *stmt);
Index: src/port/qsort.c
===================================================================
RCS file: /projects/cvsroot/pgsql/src/port/qsort.c,v
retrieving revision 1.12
diff -u -u -r1.12 qsort.c
--- src/port/qsort.c	19 Oct 2006 20:56:22 -0000	1.12
+++ src/port/qsort.c	14 Mar 2007 16:17:22 -0000
@@ -73,11 +73,7 @@
 	(es) % sizeof(long) ? 2 : (es) == sizeof(long)? 0 : 1;
 
 static void
-swapfunc(a, b, n, swaptype)
-char	   *a,
-		   *b;
-size_t		n;
-int			swaptype;
+swapfunc(char *a, char *b, size_t n, int swaptype)
 {
 	if (swaptype <= 1)
 		swapcode(long, a, b, n);
Index: src/port/qsort_arg.c
===================================================================
RCS file: /projects/cvsroot/pgsql/src/port/qsort_arg.c,v
retrieving revision 1.3
diff -u -u -r1.3 qsort_arg.c
--- src/port/qsort_arg.c	12 Oct 2006 15:04:55 -0000	1.3
+++ src/port/qsort_arg.c	14 Mar 2007 16:17:22 -0000
@@ -73,11 +73,7 @@
 	(es) % sizeof(long) ? 2 : (es) == sizeof(long)? 0 : 1;
 
 static void
-swapfunc(a, b, n, swaptype)
-char	   *a,
-		   *b;
-size_t		n;
-int			swaptype;
+swapfunc(char *a, char *b, size_t n, int swaptype)
 {
 	if (swaptype <= 1)
 		swapcode(long, a, b, n);
---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
       choose an index scan if your joining column's datatypes do not
       match

Reply via email to