mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 15:31:39 +00:00
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:
parent
eede0be6be
commit
e3279142e9
1 changed files with 0 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue