From bd6dc9683d63356d34d0b0d1c3cea4c1b6d67769 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 20 Jan 2012 22:16:29 +0000 Subject: [PATCH] -mark function that should never be called as such --- src/vpn/gnunet-service-vpn.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/vpn/gnunet-service-vpn.c b/src/vpn/gnunet-service-vpn.c index 6b89c46ae..4bff262c3 100644 --- a/src/vpn/gnunet-service-vpn.c +++ b/src/vpn/gnunet-service-vpn.c @@ -2108,16 +2108,8 @@ inbound_tunnel_cb (void *cls, struct GNUNET_MESH_Tunnel *tunnel, static void tunnel_cleaner (void *cls, const struct GNUNET_MESH_Tunnel *tunnel, void *tunnel_ctx) { - struct TunnelState *ts = tunnel_ctx; - - if (NULL == ts) - { - GNUNET_break (0); - return; - } - GNUNET_assert (ts->tunnel == tunnel); - ts->tunnel = NULL; - free_tunnel_state (ts); + /* we don't have inbound tunnels, so this function should never be called */ + GNUNET_break (0); } -- 2.25.1