no in_addr_t on W32
authorChristian Grothoff <christian@grothoff.org>
Sat, 5 Nov 2011 14:40:13 +0000 (14:40 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sat, 5 Nov 2011 14:40:13 +0000 (14:40 +0000)
src/nat/nat.c

index 802b241e4b97f02f8a07957834eefee7baefb671..0a1f4c4b5fe47f2a370a0f60930bac6ef34bda71 100644 (file)
@@ -649,7 +649,7 @@ process_interfaces (void *cls, const char *name, int isDefault,
     ip = &s4->sin_addr;
 
     /* Check if address is in 127.0.0.0/8 */
-    uint32_t address = ntohl ((in_addr_t) (s4->sin_addr.s_addr));
+    uint32_t address = ntohl ((uint32_t)(s4->sin_addr.s_addr));
     uint32_t value = (address & 0xFF000000) ^ 0x7F000000;
 
     if ((h->return_localaddress == GNUNET_NO) && (value == 0))