mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
ipv6 compile fixes from Damm
This commit is contained in:
parent
9c9756c19a
commit
1ccccc654e
1 changed files with 4 additions and 4 deletions
|
@ -195,18 +195,18 @@ NET_CompareAdr (netadr_t a, netadr_t b)
|
|||
return false;
|
||||
}
|
||||
|
||||
char *
|
||||
const char *
|
||||
NET_AdrToString (netadr_t a)
|
||||
{
|
||||
static char s[64];
|
||||
char *base;
|
||||
const char *base;
|
||||
|
||||
base = NET_BaseAdrToString (a);
|
||||
sprintf (s, "[%s]:%d", base, ntohs (a.port));
|
||||
return s;
|
||||
}
|
||||
|
||||
char *
|
||||
const char *
|
||||
NET_BaseAdrToString (netadr_t a)
|
||||
{
|
||||
static char s[64];
|
||||
|
@ -254,7 +254,7 @@ NET_BaseAdrToString (netadr_t a)
|
|||
192.246.40.70:28000
|
||||
*/
|
||||
qboolean
|
||||
NET_StringToAdr (char *s, netadr_t *a)
|
||||
NET_StringToAdr (const char *s, netadr_t *a)
|
||||
{
|
||||
|
||||
struct addrinfo hints;
|
||||
|
|
Loading…
Reference in a new issue