gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r10052 - gnunet/src/topology


From: gnunet
Subject: [GNUnet-SVN] r10052 - gnunet/src/topology
Date: Mon, 18 Jan 2010 17:09:38 +0100

Author: grothoff
Date: 2010-01-18 17:09:38 +0100 (Mon, 18 Jan 2010)
New Revision: 10052

Modified:
   gnunet/src/topology/gnunet-daemon-topology.c
Log:
fix

Modified: gnunet/src/topology/gnunet-daemon-topology.c
===================================================================
--- gnunet/src/topology/gnunet-daemon-topology.c        2010-01-18 16:09:34 UTC 
(rev 10051)
+++ gnunet/src/topology/gnunet-daemon-topology.c        2010-01-18 16:09:38 UTC 
(rev 10052)
@@ -462,20 +462,19 @@
 {
   struct PeerList *pos;
   struct PeerList *prev;
-  struct PeerList *next;
   
   prev = NULL;
-  next = peers;
-  while (peer != (pos = next))
+  pos = peers;
+  while (peer != pos)
     {
-      next = pos->next;
       prev = pos;
+      pos = pos->next;
     }
   GNUNET_assert (pos != NULL);
    if (prev == NULL)
-     peers = next;
+     peers = pos->next;
    else
-     prev->next = next;
+     prev->next = pos->next;
    if (pos->hello_req != NULL)
      GNUNET_CORE_notify_transmit_ready_cancel (pos->hello_req);
    if (pos->connect_req != NULL)





reply via email to

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