aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2004-03-22 16:46:28 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2004-03-22 16:46:28 +0000
commit6b198d61f8395c097a26dece7f2c3f33149ccf7b (patch)
tree0f2e270c506b5167db899549f3b99c41dcf450fc
parent3b7ca96c2c5bb4caeb40a0806a9a5a936cdcdfb2 (diff)
downloadpostgresql-6b198d61f8395c097a26dece7f2c3f33149ccf7b.tar.gz
postgresql-6b198d61f8395c097a26dece7f2c3f33149ccf7b.zip
Add missing extern for optind.
-rw-r--r--src/bin/pg_resetxlog/pg_resetxlog.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/bin/pg_resetxlog/pg_resetxlog.c b/src/bin/pg_resetxlog/pg_resetxlog.c
index d97948185fe..80281e8ef7a 100644
--- a/src/bin/pg_resetxlog/pg_resetxlog.c
+++ b/src/bin/pg_resetxlog/pg_resetxlog.c
@@ -23,7 +23,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/bin/pg_resetxlog/pg_resetxlog.c,v 1.16 2004/02/17 03:45:17 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/pg_resetxlog/pg_resetxlog.c,v 1.17 2004/03/22 16:46:28 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -42,6 +42,12 @@
#include "catalog/catversion.h"
#include "catalog/pg_control.h"
+extern int optind;
+extern char *optarg;
+
+#define _(x) gettext((x))
+
+
/******************** stuff copied from xlog.c ********************/
/* Increment an xlogid/segment pair */
@@ -62,8 +68,6 @@
/******************** end of stuff copied from xlog.c ********************/
-#define _(x) gettext((x))
-
static char XLogDir[MAXPGPATH];
static char ControlFilePath[MAXPGPATH];
@@ -81,9 +85,6 @@ static void KillExistingXLOG(void);
static void WriteEmptyXLOG(void);
static void usage(void);
-extern char *optarg;
-
-
int
main(int argc, char *argv[])