Skip to content

Commit b9954fb

Browse files
author
Neil Conway
committed
Code cleanup for function prototypes: change two K&R-style prototypes
to ANSI-style, and change "()" -> "(void)". Patch from Stefan Huehner.
1 parent 582e22a commit b9954fb

File tree

3 files changed

+6
-14
lines changed

3 files changed

+6
-14
lines changed

src/pl/plpgsql/src/pl_funcs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/pl/plpgsql/src/pl_funcs.c,v 1.57 2007/01/28 17:58:13 tgl Exp $
11+
* $PostgreSQL: pgsql/src/pl/plpgsql/src/pl_funcs.c,v 1.58 2007/03/18 05:36:49 neilc Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -474,7 +474,7 @@ plpgsql_stmt_typename(PLpgSQL_stmt *stmt)
474474
**********************************************************************/
475475
static int dump_indent;
476476

477-
static void dump_ind();
477+
static void dump_ind(void);
478478
static void dump_stmt(PLpgSQL_stmt *stmt);
479479
static void dump_block(PLpgSQL_stmt_block *block);
480480
static void dump_assign(PLpgSQL_stmt_assign *stmt);

src/port/qsort.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
* CAUTION: if you change this file, see also qsort_arg.c
1111
*
12-
* $PostgreSQL: pgsql/src/port/qsort.c,v 1.12 2006/10/19 20:56:22 tgl Exp $
12+
* $PostgreSQL: pgsql/src/port/qsort.c,v 1.13 2007/03/18 05:36:50 neilc Exp $
1313
*/
1414

1515
/* $NetBSD: qsort.c,v 1.13 2003/08/07 16:43:42 agc Exp $ */
@@ -73,11 +73,7 @@ do { \
7373
(es) % sizeof(long) ? 2 : (es) == sizeof(long)? 0 : 1;
7474

7575
static void
76-
swapfunc(a, b, n, swaptype)
77-
char *a,
78-
*b;
79-
size_t n;
80-
int swaptype;
76+
swapfunc(char *a, char *b, size_t n, int swaptype)
8177
{
8278
if (swaptype <= 1)
8379
swapcode(long, a, b, n);

src/port/qsort_arg.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
* CAUTION: if you change this file, see also qsort.c
1111
*
12-
* $PostgreSQL: pgsql/src/port/qsort_arg.c,v 1.3 2006/10/12 15:04:55 tgl Exp $
12+
* $PostgreSQL: pgsql/src/port/qsort_arg.c,v 1.4 2007/03/18 05:36:50 neilc Exp $
1313
*/
1414

1515
/* $NetBSD: qsort.c,v 1.13 2003/08/07 16:43:42 agc Exp $ */
@@ -73,11 +73,7 @@ do { \
7373
(es) % sizeof(long) ? 2 : (es) == sizeof(long)? 0 : 1;
7474

7575
static void
76-
swapfunc(a, b, n, swaptype)
77-
char *a,
78-
*b;
79-
size_t n;
80-
int swaptype;
76+
swapfunc(char *a, char *b, size_t n, int swaptype)
8177
{
8278
if (swaptype <= 1)
8379
swapcode(long, a, b, n);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy