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

Commit3a1ed87

Browse files
committed
Fix inconsistent static-vs-not-static declarations.
1 parent38a412e commit3a1ed87

File tree

4 files changed

+7
-10
lines changed

4 files changed

+7
-10
lines changed

‎src/backend/libpq/ip.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/libpq/ip.c,v 1.16 2003/07/23 23:30:40 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/libpq/ip.c,v 1.17 2003/08/01 17:53:41 tgl Exp $
1212
*
1313
* This file and the IPV6 implementation were initially provided by
1414
* Nigel Kukard <nkukard@lbsd.net>, Linux Based Systems Design
@@ -376,7 +376,7 @@ staticstruct sockaddr_storagesock;
376376
return0;
377377
}
378378

379-
int
379+
staticint
380380
rangeSockAddrAF_INET(conststructsockaddr_in*addr,conststructsockaddr_in*netaddr,
381381
conststructsockaddr_in*netmask)
382382
{
@@ -389,7 +389,7 @@ rangeSockAddrAF_INET(const struct sockaddr_in *addr, const struct sockaddr_in *n
389389

390390

391391
#ifdefHAVE_IPV6
392-
int
392+
staticint
393393
rangeSockAddrAF_INET6(conststructsockaddr_in6*addr,
394394
conststructsockaddr_in6*netaddr,
395395
conststructsockaddr_in6*netmask)

‎src/backend/tcop/pquery.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/tcop/pquery.c,v 1.67 2003/07/22 19:00:12 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/tcop/pquery.c,v 1.68 2003/08/01 17:57:42 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -507,7 +507,7 @@ PortalRun(Portal portal, long count,
507507
*
508508
* Returns number of rows processed (suitable for use in result tag)
509509
*/
510-
long
510+
staticlong
511511
PortalRunSelect(Portalportal,
512512
boolforward,
513513
longcount,

‎src/backend/utils/adt/ruleutils.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*back to source text
44
*
55
* IDENTIFICATION
6-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/ruleutils.c,v 1.147 2003/07/30 22:56:23 tgl Exp $
6+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/ruleutils.c,v 1.148 2003/08/01 18:00:19 tgl Exp $
77
*
88
* This software is copyrighted by Jan Wieck - Hamburg.
99
*
@@ -1298,7 +1298,7 @@ deparse_expression(Node *expr, List *dpcontext,
12981298
* The result is a palloc'd string.
12991299
* ----------
13001300
*/
1301-
char*
1301+
staticchar*
13021302
deparse_expression_pretty(Node*expr,List*dpcontext,
13031303
boolforceprefix,boolshowimplicit,
13041304
intprettyFlags,intstartIndent)

‎src/interfaces/ecpg/pgtypeslib/dt.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,6 @@ do { \
228228
* Date/time validation
229229
* Include check for leap year.
230230
*/
231-
232-
externintday_tab[2][13];
233-
234231
#defineisleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0))
235232

236233
/* Julian date support for date2j() and j2date()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp