Fixed a warning.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3133 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2009-03-03 01:53:19 +00:00
parent b763b5594d
commit c50ea9c54a

View file

@ -721,7 +721,10 @@ qboolean NET_StringToAdr (char *s, netadr_t *a)
//make sure that the rest of the address is a valid ip address (4 or 6)
if (!NET_StringToSockaddr (s+6, &sadr))
{
a->type = NA_INVALID;
return false;
}
SockadrToNetadr (&sadr, a);
@ -771,7 +774,10 @@ qboolean NET_StringToAdr (char *s, netadr_t *a)
}
if (!NET_StringToSockaddr (s, &sadr))
{
a->type = NA_INVALID;
return false;
}
SockadrToNetadr (&sadr, a);
@ -1648,6 +1654,7 @@ qboolean NET_PortToAdr (int adrfamily, char *s, netadr_t *a)
}
return true;
}
a->type = NA_INVALID;
return false;
}