Fix resolving IP addresses into names on 64-bit big-endian machines

This commit is contained in:
Miroslav Lichvar 2008-11-06 17:35:22 +01:00
parent be42b4eeea
commit fd2641bcb9

View file

@ -65,7 +65,7 @@ DNS_IPAddress2Name(unsigned long ip_addr)
struct hostent *host;
static char buffer[16];
unsigned int a, b, c, d;
unsigned long addr;
uint32_t addr;
addr = htonl(ip_addr);
if (addr == 0UL) {