From c4c08b52cfb51dee330402c44a5dbdeacab3b1a8 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Thu, 18 Jun 2015 11:56:54 +0000 Subject: [PATCH] - cleanup --- src/cadet/cadet_api.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/cadet/cadet_api.c b/src/cadet/cadet_api.c index 429f2642a..3e1f54dcd 100644 --- a/src/cadet/cadet_api.c +++ b/src/cadet/cadet_api.c @@ -723,16 +723,12 @@ static void reconnect (struct GNUNET_CADET_Handle *h) { struct GNUNET_CADET_Channel *ch; - struct GNUNET_CADET_Channel *next; LOG (GNUNET_ERROR_TYPE_DEBUG, "Requested RECONNECT, destroying all channels\n"); h->in_receive = GNUNET_NO; - for (ch = h->channels_head; NULL != ch; ch = next) - { - next = ch->next; + for (ch = h->channels_head; NULL != ch; ch = h->channels_head) destroy_channel (ch, GNUNET_YES); - } if (NULL == h->reconnect_task) h->reconnect_task = GNUNET_SCHEDULER_add_delayed (h->reconnect_time, &reconnect_cbk, h); @@ -751,7 +747,7 @@ reconnect (struct GNUNET_CADET_Handle *h) */ static void process_channel_created (struct GNUNET_CADET_Handle *h, - const struct GNUNET_CADET_ChannelMessage *msg) + const struct GNUNET_CADET_ChannelMessage *msg) { struct GNUNET_CADET_Channel *ch; CADET_ChannelNumber chid; -- 2.25.1