ipv6 compile fixes from Damm

This commit is contained in:
Bill Currie 2001-08-24 04:09:56 +00:00
parent 9c9756c19a
commit 1ccccc654e

View file

@ -195,18 +195,18 @@ NET_CompareAdr (netadr_t a, netadr_t b)
return false; return false;
} }
char * const char *
NET_AdrToString (netadr_t a) NET_AdrToString (netadr_t a)
{ {
static char s[64]; static char s[64];
char *base; const char *base;
base = NET_BaseAdrToString (a); base = NET_BaseAdrToString (a);
sprintf (s, "[%s]:%d", base, ntohs (a.port)); sprintf (s, "[%s]:%d", base, ntohs (a.port));
return s; return s;
} }
char * const char *
NET_BaseAdrToString (netadr_t a) NET_BaseAdrToString (netadr_t a)
{ {
static char s[64]; static char s[64];
@ -254,7 +254,7 @@ NET_BaseAdrToString (netadr_t a)
192.246.40.70:28000 192.246.40.70:28000
*/ */
qboolean qboolean
NET_StringToAdr (char *s, netadr_t *a) NET_StringToAdr (const char *s, netadr_t *a)
{ {
struct addrinfo hints; struct addrinfo hints;