mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-02 22:11:22 +00:00
net_sdlnet.c: Silence an assigned-but-not-used compiler warning.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1025 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
d687676d5a
commit
6603d78e5e
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