commit b531e1b857650623e8167e2d31d97be2e3985f63
parent 15bb58cddfc10126f3345d18802d28b56d572f35
Author: Christian Grothoff <christian@grothoff.org>
Date: Thu, 22 Aug 2013 07:03:26 +0000
-make clang happy
Diffstat:
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/vpn/gnunet-service-vpn.c b/src/vpn/gnunet-service-vpn.c
@@ -1033,6 +1033,7 @@ route_packet (struct DestinationEntry *destination,
(unsigned int) protocol);
return;
}
+ alen = 0;
if (! destination->is_service)
{
switch (destination->details.exit_destination.af)
@@ -1044,7 +1045,6 @@ route_packet (struct DestinationEntry *destination,
alen = sizeof (struct in6_addr);
break;
default:
- alen = 0;
GNUNET_assert (0);
}
@@ -1068,8 +1068,6 @@ route_packet (struct DestinationEntry *destination,
}
else
{
- /* make compiler happy */
- alen = 0;
{
char sbuf[INET6_ADDRSTRLEN];
char dbuf[INET6_ADDRSTRLEN];