1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

Fix a bunch of 'old-style parameter declaration' warnings induced by

writing 'foo()' rather than 'foo(void)'.
This commit is contained in:
Tom Lane
2004-10-25 02:15:02 +00:00
parent 8ec05b28b7
commit f1283ed6cc
7 changed files with 27 additions and 23 deletions

View File

@ -1,5 +1,5 @@
/*
* $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.33 2004/09/14 03:39:23 tgl Exp $
* $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.34 2004/10/25 02:15:01 tgl Exp $
*
* pgbench: a simple TPC-B like benchmark program for PostgreSQL
* written by Tatsuo Ishii
@ -107,7 +107,7 @@ typedef struct
} CState;
static void
usage()
usage(void)
{
fprintf(stderr, "usage: pgbench [-h hostname][-p port][-c nclients][-t ntransactions][-s scaling_factor][-n][-C][-v][-S][-N][-l][-U login][-P password][-d][dbname]\n");
fprintf(stderr, "(initialize mode): pgbench -i [-h hostname][-p port][-s scaling_factor][-U login][-P password][-d][dbname]\n");
@ -122,7 +122,7 @@ getrand(int min, int max)
/* set up a connection to the backend */
static PGconn *
doConnect()
doConnect(void)
{
PGconn *con;
PGresult *res;