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

Commit22989a8

Browse files
committed
Fix prototype of pgwin32_bind().
I (tgl) had copied-and-pasted this from pgwin32_accept(), failing tonotice that the third parameter should be "int" not "int *".David Rowley
1 parent92a30a7 commit22989a8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎src/backend/port/win32/socket.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ pgwin32_socket(int af, int type, int protocol)
265265
}
266266

267267
int
268-
pgwin32_bind(SOCKETs,structsockaddr*addr,int*addrlen)
268+
pgwin32_bind(SOCKETs,structsockaddr*addr,intaddrlen)
269269
{
270270
intres;
271271

‎src/include/port/win32.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ voidpg_queue_signal(int signum);
373373
#definesend(s,buf,len,flags) pgwin32_send(s, buf, len, flags)
374374

375375
SOCKETpgwin32_socket(intaf,inttype,intprotocol);
376-
intpgwin32_bind(SOCKETs,structsockaddr*addr,int*addrlen);
376+
intpgwin32_bind(SOCKETs,structsockaddr*addr,intaddrlen);
377377
intpgwin32_listen(SOCKETs,intbacklog);
378378
SOCKETpgwin32_accept(SOCKETs,structsockaddr*addr,int*addrlen);
379379
intpgwin32_connect(SOCKETs,conststructsockaddr*name,intnamelen);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp