Skip to content

Commit 22989a8

Browse files
committed
Fix prototype of pgwin32_bind().
I (tgl) had copied-and-pasted this from pgwin32_accept(), failing to notice that the third parameter should be "int" not "int *". David Rowley
1 parent 92a30a7 commit 22989a8

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(SOCKET s, struct sockaddr * addr, int *addrlen)
268+
pgwin32_bind(SOCKET s, struct sockaddr * addr, int addrlen)
269269
{
270270
int res;
271271

src/include/port/win32.h

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

375375
SOCKET pgwin32_socket(int af, int type, int protocol);
376-
int pgwin32_bind(SOCKET s, struct sockaddr * addr, int *addrlen);
376+
int pgwin32_bind(SOCKET s, struct sockaddr * addr, int addrlen);
377377
int pgwin32_listen(SOCKET s, int backlog);
378378
SOCKET pgwin32_accept(SOCKET s, struct sockaddr * addr, int *addrlen);
379379
int pgwin32_connect(SOCKET s, const struct sockaddr * name, int namelen);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy