From 66f0734e364d05d10366c02bd398e1309d7733b1 Mon Sep 17 00:00:00 2001 From: divverent Date: Sun, 16 Aug 2009 17:11:32 +0000 Subject: [PATCH] fix two SOCKLEN_Ts git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9119 d7cf8633-e32d-0410-b094-e92efae38249 --- lhnet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lhnet.c b/lhnet.c index dfb00050..1e90318f 100644 --- a/lhnet.c +++ b/lhnet.c @@ -875,7 +875,7 @@ int LHNET_Read(lhnetsocket_t *lhnetsocket, void *content, int maxcontentlength, } else if (lhnetsocket->address.addresstype == LHNETADDRESSTYPE_INET4) { - unsigned int inetaddresslength; + SOCKLEN_T inetaddresslength; address->addresstype = LHNETADDRESSTYPE_NONE; inetaddresslength = sizeof(address->addr.in); value = recvfrom(lhnetsocket->inetsocket, content, maxcontentlength, 0, &address->addr.sock, &inetaddresslength); @@ -901,7 +901,7 @@ int LHNET_Read(lhnetsocket_t *lhnetsocket, void *content, int maxcontentlength, } else if (lhnetsocket->address.addresstype == LHNETADDRESSTYPE_INET6) { - unsigned int inetaddresslength; + SOCKLEN_T inetaddresslength; address->addresstype = LHNETADDRESSTYPE_NONE; inetaddresslength = sizeof(address->addr.in6); value = recvfrom(lhnetsocket->inetsocket, content, maxcontentlength, 0, &address->addr.sock, &inetaddresslength); -- 2.39.2