aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2016-04-14 09:44:21 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2016-04-14 09:44:21 -0400
commit22989a8e34168f576e0f90b16fc3edabd28c40e6 (patch)
tree662babde319114a493b425db1726bc4d9705e396
parent92a30a7eb0cadb008e18053f199af7de3fc1abaa (diff)
downloadpostgresql-22989a8e34168f576e0f90b16fc3edabd28c40e6.tar.gz
postgresql-22989a8e34168f576e0f90b16fc3edabd28c40e6.zip
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
-rw-r--r--src/backend/port/win32/socket.c2
-rw-r--r--src/include/port/win32.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/port/win32/socket.c b/src/backend/port/win32/socket.c
index ea4fb557b6e..56a13e5894b 100644
--- a/src/backend/port/win32/socket.c
+++ b/src/backend/port/win32/socket.c
@@ -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;
diff --git a/src/include/port/win32.h b/src/include/port/win32.h
index 9810a835401..708d47ab3e5 100644
--- a/src/include/port/win32.h
+++ b/src/include/port/win32.h
@@ -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);