From: Christian Grothoff Date: Mon, 18 Jan 2010 10:21:54 +0000 (+0000) Subject: cleaner code X-Git-Tag: initial-import-from-subversion-38251~22944 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7a65c4fb6e8d2f0fd85fe8e951214c39882193e7;p=oweals%2Fgnunet.git cleaner code --- 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. */