Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6b198d6

Browse files
committed
Add missing extern for optind.
1 parent3b7ca96 commit6b198d6

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

‎src/bin/pg_resetxlog/pg_resetxlog.c

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
2424
* Portions Copyright (c) 1994, Regents of the University of California
2525
*
26-
* $PostgreSQL: pgsql/src/bin/pg_resetxlog/pg_resetxlog.c,v 1.16 2004/02/17 03:45:17 momjian Exp $
26+
* $PostgreSQL: pgsql/src/bin/pg_resetxlog/pg_resetxlog.c,v 1.17 2004/03/22 16:46:28 tgl Exp $
2727
*
2828
*-------------------------------------------------------------------------
2929
*/
@@ -42,6 +42,12 @@
4242
#include"catalog/catversion.h"
4343
#include"catalog/pg_control.h"
4444

45+
externintoptind;
46+
externchar*optarg;
47+
48+
#define_(x) gettext((x))
49+
50+
4551
/******************** stuff copied from xlog.c ********************/
4652

4753
/* Increment an xlogid/segment pair */
@@ -62,8 +68,6 @@
6268

6369
/******************** end of stuff copied from xlog.c ********************/
6470

65-
#define_(x) gettext((x))
66-
6771
staticcharXLogDir[MAXPGPATH];
6872
staticcharControlFilePath[MAXPGPATH];
6973

@@ -81,9 +85,6 @@ static void KillExistingXLOG(void);
8185
staticvoidWriteEmptyXLOG(void);
8286
staticvoidusage(void);
8387

84-
externchar*optarg;
85-
86-
8788

8889
int
8990
main(intargc,char*argv[])

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp