From: divverent Date: Sun, 16 Aug 2009 17:11:32 +0000 (+0000) Subject: fix two SOCKLEN_Ts X-Git-Tag: xonotic-v0.1.0preview~1510 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=66f0734e364d05d10366c02bd398e1309d7733b1;p=xonotic%2Fdarkplaces.git fix two SOCKLEN_Ts git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9119 d7cf8633-e32d-0410-b094-e92efae38249 --- 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);