aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-02-28 18:53:39 +0000
committerChristian Grothoff <christian@grothoff.org>2012-02-28 18:53:39 +0000
commit1a9c0bd3293015faa8c2e9d552706227ea2cf170 (patch)
treeac1740a66db6452026bf23e4d4bba5697ed63660 /src
parent88c500a043b51a228bd1c513948115dfb0e182d9 (diff)
downloadgnunet-1a9c0bd3293015faa8c2e9d552706227ea2cf170.tar.gz
gnunet-1a9c0bd3293015faa8c2e9d552706227ea2cf170.zip
-make gcc happy
Diffstat (limited to 'src')
-rw-r--r--src/dns/gnunet-service-dns.c2
-rw-r--r--src/vpn/gnunet-service-vpn.c6
2 files changed, 8 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) ||
diff --git a/src/vpn/gnunet-service-vpn.c b/src/vpn/gnunet-service-vpn.c
index 26deeee25..5290ad69e 100644
--- a/src/vpn/gnunet-service-vpn.c
+++ b/src/vpn/gnunet-service-vpn.c
@@ -894,6 +894,8 @@ route_packet (struct DestinationEntry *destination,
894 GNUNET_break (0); 894 GNUNET_break (0);
895 return; 895 return;
896 } 896 }
897 tcp = NULL; /* make compiler happy */
898 icmp = NULL; /* make compiler happy */
897 udp = payload; 899 udp = payload;
898 if (udp->len < sizeof (struct GNUNET_TUN_UdpHeader)) 900 if (udp->len < sizeof (struct GNUNET_TUN_UdpHeader))
899 { 901 {
@@ -919,6 +921,8 @@ route_packet (struct DestinationEntry *destination,
919 GNUNET_break (0); 921 GNUNET_break (0);
920 return; 922 return;
921 } 923 }
924 udp = NULL; /* make compiler happy */
925 icmp = NULL; /* make compiler happy */
922 tcp = payload; 926 tcp = payload;
923 if (tcp->off * 4 < sizeof (struct GNUNET_TUN_TcpHeader)) 927 if (tcp->off * 4 < sizeof (struct GNUNET_TUN_TcpHeader))
924 { 928 {
@@ -950,6 +954,8 @@ route_packet (struct DestinationEntry *destination,
950 GNUNET_break (0); 954 GNUNET_break (0);
951 return; 955 return;
952 } 956 }
957 tcp = NULL; /* make compiler happy */
958 udp = NULL; /* make compiler happy */
953 icmp = payload; 959 icmp = payload;
954 source_port = 0; 960 source_port = 0;
955 destination_port = 0; 961 destination_port = 0;