diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-02-28 18:53:39 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-02-28 18:53:39 +0000 |
commit | 1a9c0bd3293015faa8c2e9d552706227ea2cf170 (patch) | |
tree | ac1740a66db6452026bf23e4d4bba5697ed63660 /src/dns | |
parent | 88c500a043b51a228bd1c513948115dfb0e182d9 (diff) | |
download | gnunet-1a9c0bd3293015faa8c2e9d552706227ea2cf170.tar.gz gnunet-1a9c0bd3293015faa8c2e9d552706227ea2cf170.zip |
-make gcc happy
Diffstat (limited to 'src/dns')
-rw-r--r-- | src/dns/gnunet-service-dns.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dns/gnunet-service-dns.c b/src/dns/gnunet-service-dns.c index 1f48b105a..37d2fbca8 100644 --- a/src/dns/gnunet-service-dns.c +++ b/src/dns/gnunet-service-dns.c | |||
@@ -1268,6 +1268,7 @@ process_helper_messages (void *cls GNUNET_UNUSED, void *client, | |||
1268 | { | 1268 | { |
1269 | case ETH_P_IPV4: | 1269 | case ETH_P_IPV4: |
1270 | ip4 = (const struct GNUNET_TUN_IPv4Header *) &tun[1]; | 1270 | ip4 = (const struct GNUNET_TUN_IPv4Header *) &tun[1]; |
1271 | ip6 = NULL; /* make compiler happy */ | ||
1271 | if ( (msize < sizeof (struct GNUNET_TUN_IPv4Header)) || | 1272 | if ( (msize < sizeof (struct GNUNET_TUN_IPv4Header)) || |
1272 | (ip4->version != 4) || | 1273 | (ip4->version != 4) || |
1273 | (ip4->header_length != sizeof (struct GNUNET_TUN_IPv4Header) / 4) || | 1274 | (ip4->header_length != sizeof (struct GNUNET_TUN_IPv4Header) / 4) || |
@@ -1283,6 +1284,7 @@ process_helper_messages (void *cls GNUNET_UNUSED, void *client, | |||
1283 | msize -= sizeof (struct GNUNET_TUN_IPv4Header); | 1284 | msize -= sizeof (struct GNUNET_TUN_IPv4Header); |
1284 | break; | 1285 | break; |
1285 | case ETH_P_IPV6: | 1286 | case ETH_P_IPV6: |
1287 | ip4 = NULL; /* make compiler happy */ | ||
1286 | ip6 = (const struct GNUNET_TUN_IPv6Header *) &tun[1]; | 1288 | ip6 = (const struct GNUNET_TUN_IPv6Header *) &tun[1]; |
1287 | if ( (msize < sizeof (struct GNUNET_TUN_IPv6Header)) || | 1289 | if ( (msize < sizeof (struct GNUNET_TUN_IPv6Header)) || |
1288 | (ip6->version != 6) || | 1290 | (ip6->version != 6) || |