From 27fbfd396c62178f58564e77e5f27ed541618b3e Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 5 Apr 2009 04:19:59 +0000 Subject: Remove a boatload of useless definitions of 'int optreset'. If we are using our own ports of getopt or getopt_long, those will define the variable for themselves; and if not, we don't need these, because we never touch the variable anyway. --- src/bin/scripts/common.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/bin/scripts/common.c') diff --git a/src/bin/scripts/common.c b/src/bin/scripts/common.c index c34115a1ba0..9cf7f9c4fa4 100644 --- a/src/bin/scripts/common.c +++ b/src/bin/scripts/common.c @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/bin/scripts/common.c,v 1.35 2009/02/26 16:02:38 petere Exp $ + * $PostgreSQL: pgsql/src/bin/scripts/common.c,v 1.36 2009/04/05 04:19:59 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -24,10 +24,6 @@ static void SetCancelConn(PGconn *conn); static void ResetCancelConn(void); -#ifndef HAVE_INT_OPTRESET -int optreset; -#endif - static PGcancel *volatile cancelConn = NULL; #ifdef WIN32 -- cgit v1.2.3