mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 17:35:06 -05:00
Fix resolving IP addresses into names on 64-bit big-endian machines
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user