mirror of
https://github.com/postgres/postgres.git
synced 2025-04-21 12:05:57 +03:00
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
This commit is contained in:
parent
92a30a7eb0
commit
22989a8e34
@ -265,7 +265,7 @@ pgwin32_socket(int af, int type, int protocol)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
pgwin32_bind(SOCKET s, struct sockaddr * addr, int *addrlen)
|
pgwin32_bind(SOCKET s, struct sockaddr * addr, int addrlen)
|
||||||
{
|
{
|
||||||
int res;
|
int res;
|
||||||
|
|
||||||
|
@ -373,7 +373,7 @@ void pg_queue_signal(int signum);
|
|||||||
#define send(s, buf, len, flags) pgwin32_send(s, buf, len, flags)
|
#define send(s, buf, len, flags) pgwin32_send(s, buf, len, flags)
|
||||||
|
|
||||||
SOCKET pgwin32_socket(int af, int type, int protocol);
|
SOCKET pgwin32_socket(int af, int type, int protocol);
|
||||||
int pgwin32_bind(SOCKET s, struct sockaddr * addr, int *addrlen);
|
int pgwin32_bind(SOCKET s, struct sockaddr * addr, int addrlen);
|
||||||
int pgwin32_listen(SOCKET s, int backlog);
|
int pgwin32_listen(SOCKET s, int backlog);
|
||||||
SOCKET pgwin32_accept(SOCKET s, struct sockaddr * addr, int *addrlen);
|
SOCKET pgwin32_accept(SOCKET s, struct sockaddr * addr, int *addrlen);
|
||||||
int pgwin32_connect(SOCKET s, const struct sockaddr * name, int namelen);
|
int pgwin32_connect(SOCKET s, const struct sockaddr * name, int namelen);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user