summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCamm Maguire <camm@debian.org>2014-04-11 15:33:00 +0000
committerCamm Maguire <camm@debian.org>2014-04-21 14:38:09 +0000
commit3179fc291c0124e5186c8e062ab26bf54615f9e4 (patch)
treebe1438d6b16e5947ed1808ac3aa4d2bb9f532d16
parent18ebe396690d513879f04ae870ef9f5e58040d5c (diff)
downloadgcl-3179fc291c0124e5186c8e062ab26bf54615f9e4.tar.gz
socklen_t cleanups
-rw-r--r--gcl/o/nsocket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcl/o/nsocket.c b/gcl/o/nsocket.c
index dac48b68..e55f4f96 100644
--- a/gcl/o/nsocket.c
+++ b/gcl/o/nsocket.c
@@ -334,7 +334,7 @@ DEFUN("GETPEERNAME",object,fSgetpeername,SI,1,1,NONE,OO,OO,OO,OO,(object sock),
"Return a list of three elements: the address, the hostname and the port for the other end of the socket. If hostname is not available it will be equal to the address. Invalid on server sockets. Return NIL on failure.")
{
struct sockaddr_in peername;
- unsigned size = sizeof(struct sockaddr_in);
+ socklen_t size = sizeof(struct sockaddr_in);
struct hostent *hostEntPtr;
object address,host;
check_socket(sock);
@@ -361,7 +361,7 @@ DEFUN("GETPEERNAME",object,fSgetpeername,SI,1,1,NONE,OO,OO,OO,OO,(object sock),
DEFUN("GETSOCKNAME",object,fSgetsockname,SI,1,1,NONE,OO,OO,OO,OO,(object sock),
"Return a list of three elements: the address, the hostname and the port for the socket. If hostname is not available it will be equal to the address. Return NIL on failure. ")
{ struct sockaddr_in sockname;
- unsigned size = sizeof(struct sockaddr_in);
+ socklen_t size = sizeof(struct sockaddr_in);
struct hostent *hostEntPtr;
object address,host;