Fix resolving IP addresses into names on 64-bit big-endian machines
This commit is contained in:
parent
be42b4eeea
commit
fd2641bcb9
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue