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:
parent
00bda4c01e
commit
ba4b4f1c28
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=24327
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user