From 7a65c4fb6e8d2f0fd85fe8e951214c39882193e7 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 18 Jan 2010 10:21:54 +0000 Subject: [PATCH] cleaner code --- src/topology/gnunet-daemon-topology.c | 58 +++++++++++++-------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/src/topology/gnunet-daemon-topology.c b/src/topology/gnunet-daemon-topology.c index 5dedeb42a..16707777d 100644 --- a/src/topology/gnunet-daemon-topology.c +++ b/src/topology/gnunet-daemon-topology.c @@ -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. */ -- 2.25.1