]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
Fix resolving IP addresses into names on 64-bit big-endian machines
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 6 Nov 2008 16:35:22 +0000 (17:35 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 6 Nov 2008 17:18:41 +0000 (18:18 +0100)
nameserv.c

index f509dfb3cb4ae3a9fceb08285787af7e6f2d2671..dd610df525eb8c4ce376e5d6ca2eea7d5a8c61d1 100644 (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) {