cleaner code
authorChristian Grothoff <christian@grothoff.org>
Mon, 18 Jan 2010 10:21:54 +0000 (10:21 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 18 Jan 2010 10:21:54 +0000 (10:21 +0000)
src/topology/gnunet-daemon-topology.c

index 5dedeb42a7a66f8cbb1296cab79a0a64898b63bf..16707777d24031529d5800d9149473413839b573 100644 (file)
@@ -138,6 +138,35 @@ struct HelloList
 };
 
 
+/**
+ * Entry in linked list of active 'disconnect' requests that we have issued.
+ */
+struct DisconnectList
+{
+  /**
+   * This is a doubly-linked list.
+   */
+  struct DisconnectList *next;
+
+  /**
+   * This is a doubly-linked list.
+   */
+  struct DisconnectList *prev;
+  
+  /**
+   * Our request handle.
+   */
+  struct GNUNET_CORE_InformationRequestContext *rh;
+
+  /**
+   * Peer we tried to disconnect.
+   */
+  struct GNUNET_PeerIdentity peer;
+
+};
+
+
+
 /**
  * Our peerinfo notification context.  We use notification
  * to instantly learn about new peers as they are discovered
@@ -230,35 +259,6 @@ static struct GNUNET_PEERINFO_IteratorContext *pitr;
  */
 static struct GNUNET_PEERINFO_IteratorContext *pitr_more;
 
-
-/**
- * Entry in linked list of active 'disconnect' requests that we have issued.
- */
-struct DisconnectList
-{
-  /**
-   * This is a doubly-linked list.
-   */
-  struct DisconnectList *next;
-
-  /**
-   * This is a doubly-linked list.
-   */
-  struct DisconnectList *prev;
-  
-  /**
-   * Our request handle.
-   */
-  struct GNUNET_CORE_InformationRequestContext *rh;
-
-  /**
-   * Peer we tried to disconnect.
-   */
-  struct GNUNET_PeerIdentity peer;
-
-};
-
-
 /**
  * Head of doubly-linked list of active 'disconnect' requests that we have issued.
  */