diff options
author | jcid <devnull@localhost> | 2008-10-22 19:44:40 +0200 |
---|---|---|
committer | jcid <devnull@localhost> | 2008-10-22 19:44:40 +0200 |
commit | f144706fd7987fa9fa8555e5ff25ec326e4a07f5 (patch) | |
tree | 917722b688bfcf7b06234491409a2b8786f313e5 /src/dns.c | |
parent | b24af37659134db2198199e3b534bc767a582e58 (diff) |
- Allowed compilation with older machines by removing a few C99isms.
- Added use of inttypes.h when stdint.h isn't found.
Diffstat (limited to 'src/dns.c')
-rw-r--r-- | src/dns.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -267,12 +267,13 @@ static void *Dns_server(void *data) int channel = VOIDP2INT(data); struct addrinfo hints, *res0; int error; + Dlist *hosts; memset(&hints, 0, sizeof(hints)); hints.ai_family = AF_UNSPEC; hints.ai_socktype = SOCK_STREAM; - Dlist *hosts = dList_new(2); + hosts = dList_new(2); _MSG("Dns_server: starting...\n ch: %d host: %s\n", channel, dns_server[channel].hostname); |