From Dirk Jagdmann: Use a guint32 for IPv4 addresses. Fixes compilation
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 25 Jun 2013 13:31:19 +0000 (13:31 +0000)
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 25 Jun 2013 13:31:19 +0000 (13:31 +0000)
on OS X + Cmake.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@50139 f5534014-38df-0310-8fa8-9805f1628bb7

text2pcap.c

index 1aab81a84e38579f6499cc61b73c73197b93b7b6..85044ec4312011f0871355dd580d04252f61266e 100644 (file)
@@ -181,8 +181,8 @@ static int hdr_ipv6 = FALSE;
 static long hdr_ip_proto = 0;
 
 /* Destination and source addresses for IP header */
-static unsigned long hdr_ip_dest_addr = 0;
-static unsigned long hdr_ip_src_addr = 0;
+static guint32 hdr_ip_dest_addr = 0;
+static guint32 hdr_ip_src_addr = 0;
 static guint8 hdr_ipv6_dest_addr[16] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
 static guint8 hdr_ipv6_src_addr[16] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
 static guint8 NO_IPv6_ADDRESS[16] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};