Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 6f16905

Browse files
committed
Save_r, Save_t should be static not global variables.
1 parent 5319ba3 commit 6f16905

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/backend/tcop/postgres.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.374 2003/10/18 22:59:08 petere Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.375 2003/10/19 23:43:51 tgl Exp $
1212
*
1313
* NOTES
1414
* this is the "main" module of the postgres backend and
@@ -2659,7 +2659,7 @@ PostgresMain(int argc, char *argv[], const char *username)
26592659
if (!IsUnderPostmaster)
26602660
{
26612661
puts("\nPOSTGRES backend interactive interface ");
2662-
puts("$Revision: 1.374 $ $Date: 2003/10/18 22:59:08 $\n");
2662+
puts("$Revision: 1.375 $ $Date: 2003/10/19 23:43:51 $\n");
26632663
}
26642664

26652665
/*
@@ -3090,8 +3090,8 @@ PostgresMain(int argc, char *argv[], const char *username)
30903090
#include <sys/resource.h>
30913091
#endif /* HAVE_GETRUSAGE */
30923092

3093-
struct rusage Save_r;
3094-
struct timeval Save_t;
3093+
static struct rusage Save_r;
3094+
static struct timeval Save_t;
30953095

30963096
void
30973097
ResetUsage(void)

0 commit comments

Comments
 (0)