summaryrefslogtreecommitdiff
path: root/src/port/qsort.c
diff options
context:
space:
mode:
authorNeil Conway <neilc@samurai.com>2007-03-18 05:36:50 +0000
committerNeil Conway <neilc@samurai.com>2007-03-18 05:36:50 +0000
commitb9954fbb4ef25fb1ea173d26017d4d128dd15be5 (patch)
tree10b14b732f716ae96f68651a1d9f3f747a4b6067 /src/port/qsort.c
parent582e22a8c3cf5698aefe0933fe627b4223a62527 (diff)
Code cleanup for function prototypes: change two K&R-style prototypes
to ANSI-style, and change "()" -> "(void)". Patch from Stefan Huehner.
Diffstat (limited to 'src/port/qsort.c')
-rw-r--r--src/port/qsort.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/port/qsort.c b/src/port/qsort.c
index c0a6b194a0f..f7dae50c28c 100644
--- a/src/port/qsort.c
+++ b/src/port/qsort.c
@@ -9,7 +9,7 @@
*
* 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 $ */
@@ -73,11 +73,7 @@ do { \
(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);