summaryrefslogtreecommitdiff
path: root/src/bin/psql/common.c
diff options
context:
space:
mode:
authorNeil Conway <neilc@samurai.com>2004-10-10 23:37:45 +0000
committerNeil Conway <neilc@samurai.com>2004-10-10 23:37:45 +0000
commit0e72b9d4408ddb8bf3355d02e3a3e3c885357e9b (patch)
tree94dd35531eaf8236cccb7eb146b20124a0852fc1 /src/bin/psql/common.c
parent86a39d5a196441fe0afd31bc7429842fa16c0b65 (diff)
Cosmetic improvements/code cleanup:
- replace some function signatures of the form "some_type foo()" with "some_type foo(void)" - replace a few instances of a literal 0 being used as a NULL pointer; there are more instances of this in the code, but I just fixed a few - in src/backend/utils/mb/wstrncmp.c, replace K&R style function declarations with ANSI style, remove use of 'register' keyword - remove an "extern" modifier that was applied to a function definition (rather than a declaration)
Diffstat (limited to 'src/bin/psql/common.c')
-rw-r--r--src/bin/psql/common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/common.c b/src/bin/psql/common.c
index 27b9a290fc5..0ca6fa4f557 100644
--- a/src/bin/psql/common.c
+++ b/src/bin/psql/common.c
@@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2004, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/bin/psql/common.c,v 1.91 2004/09/20 18:51:19 tgl Exp $
+ * $PostgreSQL: pgsql/src/bin/psql/common.c,v 1.92 2004/10/10 23:37:40 neilc Exp $
*/
#include "postgres_fe.h"
#include "common.h"
@@ -268,7 +268,7 @@ handle_sigint(SIGNAL_ARGS)
* Returns whether our backend connection is still there.
*/
static bool
-ConnectionUp()
+ConnectionUp(void)
{
return PQstatus(pset.db) != CONNECTION_BAD;
}