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

Commit0000a0c

Browse files
committed
Small cleanups.
1 parent4373c4d commit0000a0c

File tree

5 files changed

+10
-17
lines changed

5 files changed

+10
-17
lines changed

‎src/backend/access/transam/transam.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/access/transam/transam.c,v 1.24 1999/02/21 03:48:28 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/transam/transam.c,v 1.25 1999/03/30 01:37:21 momjian Exp $
1111
*
1212
* NOTES
1313
* This file contains the high level access-method interface to the
@@ -174,8 +174,7 @@ TransactionLogTest(TransactionId transactionId, /* transaction id to test */
174174
{
175175
TransactionIdStore(transactionId,&cachedTestXid);
176176
cachedTestXidStatus=xidstatus;
177-
return (bool)
178-
(status==xidstatus);
177+
return (bool) (status==xidstatus);
179178
}
180179

181180
/* ----------------

‎src/backend/access/transam/transsup.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/access/transam/Attic/transsup.c,v 1.20 1999/02/13 23:14:47 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/transam/Attic/transsup.c,v 1.21 1999/03/30 01:37:21 momjian Exp $
1111
*
1212
* NOTES
1313
* This file contains support functions for the high
@@ -211,8 +211,7 @@ TransBlockGetXidStatus(Block tblock,
211211
*return the transaction status to the caller
212212
* ----------------
213213
*/
214-
return (XidStatus)
215-
(bit1 |bit2);
214+
return (XidStatus) (bit1 |bit2);
216215
}
217216

218217
/* --------------------------------

‎src/backend/commands/command.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.41 1999/03/23 05:40:59 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.42 1999/03/30 01:37:22 momjian Exp $
1111
*
1212
* NOTES
1313
* The PortalExecutorHeapMemory crap needs to be eliminated
@@ -71,8 +71,7 @@ PortalCleanup(Portal portal)
7171
* ----------------
7272
*/
7373
context=MemoryContextSwitchTo((MemoryContext)PortalGetHeapMemory(portal));
74-
PortalExecutorHeapMemory= (MemoryContext)
75-
PortalGetHeapMemory(portal);
74+
PortalExecutorHeapMemory= (MemoryContext)PortalGetHeapMemory(portal);
7675

7776
/* ----------------
7877
*tell the executor to shutdown the query
@@ -210,7 +209,7 @@ PerformPortalFetch(char *name,
210209
* ----------------
211210
*/
212211
MemoryContextSwitchTo(
213-
(MemoryContext)PortalGetHeapMemory(GetPortalByName(NULL)));
212+
(MemoryContext)PortalGetHeapMemory(GetPortalByName(NULL)));
214213
}
215214

216215
/* --------------------------------

‎src/backend/executor/spi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* spi.c
44
*Server Programming Interface
55
*
6-
* $Id: spi.c,v 1.35 1999/03/09 13:39:00 scrappy Exp $
6+
* $Id: spi.c,v 1.36 1999/03/30 01:37:23 momjian Exp $
77
*
88
*-------------------------------------------------------------------------
99
*/
@@ -49,7 +49,7 @@ extern void ShowUsage(void);
4949
int
5050
SPI_connect()
5151
{
52-
charpname[64];
52+
charpname[64];
5353
PortalVariableMemorypvmem;
5454

5555
/*

‎src/include/c.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* Copyright (c) 1994, Regents of the University of California
99
*
10-
* $Id: c.h,v 1.52 1999/03/09 13:39:01 scrappy Exp $
10+
* $Id: c.h,v 1.53 1999/03/30 01:37:28 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -57,10 +57,6 @@
5757
#include<errno.h>
5858
#endif
5959

60-
#ifdef__CYGWIN32__
61-
#include<errno.h>
62-
#endif
63-
6460
/* ----------------------------------------------------------------
6561
*Section 1:bool, true, false, TRUE, FALSE
6662
* ----------------------------------------------------------------

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp