mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +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);
|
||||
return 0;
|
||||
#endif
|
||||
no_ifaddrs:
|
||||
#endif
|
||||
ifaces = &myAddr;
|
||||
default_iface = &ifaces[0];
|
||||
num_ifaces = 1;
|
||||
|
@ -583,7 +583,8 @@ UDP_GetNameFromAddr (netadr_t *addr, char *name)
|
|||
{
|
||||
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) {
|
||||
strncpy (name, (char *) hostentry->h_name, NET_NAMELEN - 1);
|
||||
|
|
Loading…
Reference in a new issue