Commit b9954fbb authored by Neil Conway's avatar Neil Conway

Code cleanup for function prototypes: change two K&R-style prototypes

to ANSI-style, and change "()" -> "(void)". Patch from Stefan Huehner.
parent 582e22a8
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/pl/plpgsql/src/pl_funcs.c,v 1.57 2007/01/28 17:58:13 tgl Exp $ * $PostgreSQL: pgsql/src/pl/plpgsql/src/pl_funcs.c,v 1.58 2007/03/18 05:36:49 neilc Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -474,7 +474,7 @@ plpgsql_stmt_typename(PLpgSQL_stmt *stmt) ...@@ -474,7 +474,7 @@ plpgsql_stmt_typename(PLpgSQL_stmt *stmt)
**********************************************************************/ **********************************************************************/
static int dump_indent; static int dump_indent;
static void dump_ind(); static void dump_ind(void);
static void dump_stmt(PLpgSQL_stmt *stmt); static void dump_stmt(PLpgSQL_stmt *stmt);
static void dump_block(PLpgSQL_stmt_block *block); static void dump_block(PLpgSQL_stmt_block *block);
static void dump_assign(PLpgSQL_stmt_assign *stmt); static void dump_assign(PLpgSQL_stmt_assign *stmt);
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* *
* CAUTION: if you change this file, see also qsort_arg.c * CAUTION: if you change this file, see also qsort_arg.c
* *
* $PostgreSQL: pgsql/src/port/qsort.c,v 1.12 2006/10/19 20:56:22 tgl Exp $ * $PostgreSQL: pgsql/src/port/qsort.c,v 1.13 2007/03/18 05:36:50 neilc Exp $
*/ */
/* $NetBSD: qsort.c,v 1.13 2003/08/07 16:43:42 agc Exp $ */ /* $NetBSD: qsort.c,v 1.13 2003/08/07 16:43:42 agc Exp $ */
...@@ -73,11 +73,7 @@ do { \ ...@@ -73,11 +73,7 @@ do { \
(es) % sizeof(long) ? 2 : (es) == sizeof(long)? 0 : 1; (es) % sizeof(long) ? 2 : (es) == sizeof(long)? 0 : 1;
static void static void
swapfunc(a, b, n, swaptype) swapfunc(char *a, char *b, size_t n, int swaptype)
char *a,
*b;
size_t n;
int swaptype;
{ {
if (swaptype <= 1) if (swaptype <= 1)
swapcode(long, a, b, n); swapcode(long, a, b, n);
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* *
* CAUTION: if you change this file, see also qsort.c * CAUTION: if you change this file, see also qsort.c
* *
* $PostgreSQL: pgsql/src/port/qsort_arg.c,v 1.3 2006/10/12 15:04:55 tgl Exp $ * $PostgreSQL: pgsql/src/port/qsort_arg.c,v 1.4 2007/03/18 05:36:50 neilc Exp $
*/ */
/* $NetBSD: qsort.c,v 1.13 2003/08/07 16:43:42 agc Exp $ */ /* $NetBSD: qsort.c,v 1.13 2003/08/07 16:43:42 agc Exp $ */
...@@ -73,11 +73,7 @@ do { \ ...@@ -73,11 +73,7 @@ do { \
(es) % sizeof(long) ? 2 : (es) == sizeof(long)? 0 : 1; (es) % sizeof(long) ? 2 : (es) == sizeof(long)? 0 : 1;
static void static void
swapfunc(a, b, n, swaptype) swapfunc(char *a, char *b, size_t n, int swaptype)
char *a,
*b;
size_t n;
int swaptype;
{ {
if (swaptype <= 1) if (swaptype <= 1)
swapcode(long, a, b, n); swapcode(long, a, b, n);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment