mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
Fix a type mismatch on android.
This commit is contained in:
parent
4bd6bca6f2
commit
cef004fc15
1 changed files with 3 additions and 2 deletions
|
@ -205,8 +205,8 @@ get_iface_list (int sock)
|
||||||
}
|
}
|
||||||
freeifaddrs (ifa_head);
|
freeifaddrs (ifa_head);
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
|
||||||
no_ifaddrs:
|
no_ifaddrs:
|
||||||
|
#endif
|
||||||
ifaces = &myAddr;
|
ifaces = &myAddr;
|
||||||
default_iface = &ifaces[0];
|
default_iface = &ifaces[0];
|
||||||
num_ifaces = 1;
|
num_ifaces = 1;
|
||||||
|
@ -583,7 +583,8 @@ UDP_GetNameFromAddr (netadr_t *addr, char *name)
|
||||||
{
|
{
|
||||||
struct hostent *hostentry;
|
struct hostent *hostentry;
|
||||||
|
|
||||||
hostentry = gethostbyaddr (&addr->ip, ADDR_SIZE, AF_INET);
|
//FIXME the cast is an evil hack for android
|
||||||
|
hostentry = gethostbyaddr ((char *) &addr->ip, ADDR_SIZE, AF_INET);
|
||||||
|
|
||||||
if (hostentry) {
|
if (hostentry) {
|
||||||
strncpy (name, (char *) hostentry->h_name, NET_NAMELEN - 1);
|
strncpy (name, (char *) hostentry->h_name, NET_NAMELEN - 1);
|
||||||
|
|
Loading…
Reference in a new issue