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

Commitf903278

Browse files
committed
Silence compiler warning on mingw
1 parentd602592 commitf903278

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎src/backend/libpq/pqcomm.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
3131
* Portions Copyright (c) 1994, Regents of the University of California
3232
*
33-
*$PostgreSQL: pgsql/src/backend/libpq/pqcomm.c,v 1.194 2007/07/23 10:16:54 mha Exp $
33+
*$PostgreSQL: pgsql/src/backend/libpq/pqcomm.c,v 1.195 2007/07/24 11:16:36 mha Exp $
3434
*
3535
*-------------------------------------------------------------------------
3636
*/
@@ -245,7 +245,6 @@ StreamServerPort(int family, char *hostName, unsigned short portNumber,
245245
intfd,
246246
err;
247247
intmaxconn;
248-
intone=1;
249248
intret;
250249
charportNumberStr[32];
251250
constchar*familyDesc;
@@ -256,6 +255,9 @@ StreamServerPort(int family, char *hostName, unsigned short portNumber,
256255
structaddrinfohint;
257256
intlisten_index=0;
258257
intadded=0;
258+
#if !defined(WIN32)|| defined(IPV6_V6ONLY)
259+
intone=1;
260+
#endif
259261

260262
/* Initialize hint structure */
261263
MemSet(&hint,0,sizeof(hint));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp