1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

Fix invalid cast

Found by:	bento
This commit is contained in:
Chris D. Faulhaber 1999-12-31 23:08:21 +00:00
parent 00bda4c01e
commit ba4b4f1c28
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=24327

View File

@ -5,7 +5,7 @@
gLocalIPAddr = 0;
- if (getsockname(ConnectionNumber(gDisplay), &saddr, &len) != -1)
+ if (getsockname(ConnectionNumber(gDisplay), &saddr, (int *)&len) != -1)
+ if (getsockname(ConnectionNumber(gDisplay), &saddr, (socklen_t *)&len) != -1)
if (saddr.sa_family == AF_INET)
gLocalIPAddr = ntohl(((sockaddr_in*)&saddr)->sin_addr.s_addr);