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

Commit05b0f22

Browse files
author
Bryan Henderson
committed
Eliminate dupliclate definition of external variables reldesc and DataDir.
Some compilers recognize this error.
1 parent025f281 commit05b0f22

File tree

4 files changed

+11
-14
lines changed

4 files changed

+11
-14
lines changed

‎src/backend/bootstrap/bootstrap.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Copyright (c) 1994, Regents of the University of California
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.13 1996/12/26 22:06:59 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.14 1997/01/14 08:04:42 bryanh Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -184,7 +184,6 @@ static struct typmap *Ap = (struct typmap *)NULL;
184184
staticintWarnings=0;
185185
staticcharBlanks[MAXATTR];
186186

187-
Relationreldesc;/* current relation descriptor */
188187
staticchar*relname;/* current relation name */
189188

190189
AttributeTupleFormattrtypes[MAXATTR];/* points to attribute info */

‎src/backend/postmaster/postmaster.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
*
1212
* IDENTIFICATION
13-
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.30 1996/12/26 22:07:17 momjian Exp $
13+
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.31 1997/01/14 08:05:19 bryanh Exp $
1414
*
1515
* NOTES
1616
*
@@ -119,11 +119,6 @@ static short ActiveBackends = FALSE;
119119
staticintNextBackendId=MAXINT;/* XXX why? */
120120
staticchar*progname= (char*)NULL;
121121

122-
char*DataDir;
123-
/* The PGDATA directory user says to use, or defaults to via environment
124-
variable. NULL if no option given and no environment variable set
125-
*/
126-
127122
/*
128123
* Default Values
129124
*/

‎src/backend/tcop/postgres.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.24 1996/12/26 22:07:40 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.25 1997/01/14 08:05:26 bryanh Exp $
1111
*
1212
* NOTES
1313
* this is the "main" module of the postgres backend and
@@ -100,7 +100,6 @@ int dontExecute = 0;
100100
staticintShowStats;
101101
staticboolIsEmptyQuery= false;
102102

103-
Relationreldesc;/* current relation descritor */
104103
charrelname[80];/* current relation name */
105104

106105
#if defined(WIN32)|| defined(next)
@@ -1272,7 +1271,7 @@ PostgresMain(int argc, char *argv[])
12721271
*/
12731272
if (IsUnderPostmaster== false) {
12741273
puts("\nPOSTGRES backend interactive interface");
1275-
puts("$Revision: 1.24 $ $Date:1996/12/26 22:07:40 $");
1274+
puts("$Revision: 1.25 $ $Date:1997/01/14 08:05:26 $");
12761275
}
12771276

12781277
/* ----------------

‎src/backend/utils/init/globals.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/init/globals.c,v 1.3 1996/11/1410:24:38 bryanh Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/init/globals.c,v 1.4 1997/01/1408:05:36 bryanh Exp $
1111
*
1212
* NOTES
1313
* Globals used all over the place should be declared here and not
@@ -41,8 +41,12 @@ intNoversion = 0;
4141
intQuiet=1;
4242

4343
intMasterPid;
44-
char*DataDir;
45-
44+
char*DataDir;
45+
/* The PGDATA directory user says to use, or defaults to via environment
46+
variable. NULL if no option given and no environment variable set
47+
*/
48+
Relationreldesc;/* current relation descriptor */
49+
4650
charOutputFileName[MAXPGPATH]="";
4751

4852
BackendIdMyBackendId;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp