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:
Tom Lane 2016-04-14 09:44:21 -04:00
parent 92a30a7eb0
commit 22989a8e34
2 changed files with 2 additions and 2 deletions

View File

@ -265,7 +265,7 @@ pgwin32_socket(int af, int type, int protocol)
}
int
pgwin32_bind(SOCKET s, struct sockaddr * addr, int *addrlen)
pgwin32_bind(SOCKET s, struct sockaddr * addr, int addrlen)
{
int res;

View File

@ -373,7 +373,7 @@ void pg_queue_signal(int signum);
#define send(s, buf, len, flags) pgwin32_send(s, buf, len, flags)
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);
SOCKET pgwin32_accept(SOCKET s, struct sockaddr * addr, int *addrlen);
int pgwin32_connect(SOCKET s, const struct sockaddr * name, int namelen);