net_sdlnet.c: Silence an assigned-but-not-used compiler warning.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1025 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
svdijk 2014-09-13 01:42:25 +00:00
parent eede0be6be
commit e3279142e9

View file

@ -481,12 +481,9 @@ static int PartialIPAddress (const char *in, struct qsockaddr *hostaddr)
int SDLN_GetAddrFromName (const char *name, struct qsockaddr *addr)
{
IPaddress *ipaddress;
if (name[0] >= '0' && name[0] <= '9')
return PartialIPAddress (name, addr);
ipaddress = (IPaddress *)&(addr->qsa_data);
if (SDLNet_ResolveHost((IPaddress *)(&addr->qsa_data), name, net_hostport) == -1)
return -1;