git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4906 fc73d0e0-1445-4013-8a0c-d673dee63da5

This commit is contained in:
Spoike 2015-06-17 06:42:27 +00:00
parent 8efd3f15be
commit cc8ceb4894

View file

@ -421,12 +421,14 @@ qboolean NET_AddressSmellsFunny(netadr_t *a)
}
}
/*
static void NET_AdrToStringDoResolve(void *ctx, void *data, size_t a, size_t b)
{
netadr_t *n = data;
struct sockaddr_qstorage s;
int ssz;
char *adrstring = Z_Malloc(NI_MAXHOST);
void (*resolved)(void *ctx, void *data, size_t a, size_t b) = *(void**)(n+1);
if (n->type == NA_LOOPBACK)
NET_BaseAdrToString(adrstring, NI_MAXHOST, n);
else
@ -437,7 +439,7 @@ static void NET_AdrToStringDoResolve(void *ctx, void *data, size_t a, size_t b)
NET_BaseAdrToString(adrstring, NI_MAXHOST, n);
}
}
COM_AddWork(0, *(void**)(n+1), ctx, adrstring, a, b);
COM_AddWork(0, resolved, ctx, adrstring, a, b);
Z_Free(n);
}
@ -448,6 +450,7 @@ void NET_AdrToStringResolve (netadr_t *adr, void (*resolved)(void *ctx, void *da
*(void**)(n+1) = resolved;
COM_AddWork(2, NET_AdrToStringDoResolve, ctx, n, a, b);
}
*/
char *NET_AdrToString (char *s, int len, netadr_t *a)
{