net_sdlnet.c (SDLN_GetAddrFromName): use net_hosport instead of hardcoded

26000 in the SDLNet_ResolveHost() call.


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@100 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
sezero 2010-03-06 10:29:43 +00:00
parent 15d39fa705
commit b40b2f958b

View file

@ -482,7 +482,7 @@ int SDLN_GetAddrFromName (char *name, struct qsockaddr *addr)
return PartialIPAddress (name, addr); return PartialIPAddress (name, addr);
ipaddress = (IPaddress *)&(addr->sa_data); ipaddress = (IPaddress *)&(addr->sa_data);
if (SDLNet_ResolveHost((IPaddress *)(&addr->sa_data), name, 26000) == -1) if (SDLNet_ResolveHost((IPaddress *)(&addr->sa_data), name, net_hostport) == -1)
return -1; return -1;
addr->sa_family = AF_INET; addr->sa_family = AF_INET;