gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r35950 - gnunet/src/cadet


From: gnunet
Subject: [GNUnet-SVN] r35950 - gnunet/src/cadet
Date: Thu, 18 Jun 2015 13:56:54 +0200

Author: bartpolot
Date: 2015-06-18 13:56:54 +0200 (Thu, 18 Jun 2015)
New Revision: 35950

Modified:
   gnunet/src/cadet/cadet_api.c
Log:
- cleanup

Modified: gnunet/src/cadet/cadet_api.c
===================================================================
--- gnunet/src/cadet/cadet_api.c        2015-06-17 14:27:56 UTC (rev 35949)
+++ gnunet/src/cadet/cadet_api.c        2015-06-18 11:56:54 UTC (rev 35950)
@@ -723,16 +723,12 @@
 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 @@
  */
 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;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]