summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Stark2011-03-27 20:31:41 +0000
committerGreg Stark2011-03-27 20:31:41 +0000
commit7b66e2c086b1a24d8adad52842725db8c0499e02 (patch)
treeb042aa52e8c28d087e23b3ed36d1a1a8cfc06f9c
parentd0dd5c73527d4adc11211bd6ad43e3be121842f9 (diff)
fix up a couple non-prototypes of the form foo() to be foo(void) -- found using -Wstrict-prototypes
-rw-r--r--src/bin/pg_basebackup/pg_basebackup.c4
-rw-r--r--src/interfaces/ecpg/include/ecpglib.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/pg_basebackup/pg_basebackup.c b/src/bin/pg_basebackup/pg_basebackup.c
index 86ef1d068d..9f926bd242 100644
--- a/src/bin/pg_basebackup/pg_basebackup.c
+++ b/src/bin/pg_basebackup/pg_basebackup.c
@@ -64,7 +64,7 @@ static PGconn *GetConnection(void);
static void ReceiveTarFile(PGconn *conn, PGresult *res, int rownum);
static void ReceiveAndUnpackTarFile(PGconn *conn, PGresult *res, int rownum);
-static void BaseBackup();
+static void BaseBackup(void);
#ifdef HAVE_LIBZ
static const char *
@@ -752,7 +752,7 @@ GetConnection(void)
}
static void
-BaseBackup()
+BaseBackup(void)
{
PGresult *res;
uint32 timeline;
diff --git a/src/interfaces/ecpg/include/ecpglib.h b/src/interfaces/ecpg/include/ecpglib.h
index 21b64d5d38..3b8ed4c4b0 100644
--- a/src/interfaces/ecpg/include/ecpglib.h
+++ b/src/interfaces/ecpg/include/ecpglib.h
@@ -92,7 +92,7 @@ void *ECPGget_var(int number);
void ECPGfree_auto_mem(void);
#ifdef ENABLE_THREAD_SAFETY
-void ecpg_pthreads_init();
+void ecpg_pthreads_init(void);
#endif
#ifdef __cplusplus