From 51b6dbc56f910bbb3e9ed378a71ebb2c87340885 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 23 Jun 2014 21:18:08 +0000 Subject: [PATCH] -move struct def to where it is used --- src/transport/plugin_transport_udp.c | 35 ++++++++++++++-------------- 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c index 68371703f..bb223263f 100644 --- a/src/transport/plugin_transport_udp.c +++ b/src/transport/plugin_transport_udp.c @@ -211,23 +211,6 @@ struct Session }; -/** - * Closure for #session_cmp_it(). - */ -struct SessionCompareContext -{ - /** - * Set to session matching the address. - */ - struct Session *res; - - /** - * Address we are looking for. - */ - const struct GNUNET_HELLO_Address *address; -}; - - /** * Closure for #process_inbound_tokenized_messages(). */ @@ -1581,7 +1564,6 @@ create_session (struct Plugin *plugin, } - /** * Function obtain the network type for a session * @@ -1597,6 +1579,23 @@ udp_get_network (void *cls, } +/** + * Closure for #session_cmp_it(). + */ +struct SessionCompareContext +{ + /** + * Set to session matching the address. + */ + struct Session *res; + + /** + * Address we are looking for. + */ + const struct GNUNET_HELLO_Address *address; +}; + + /** * Find a session with a matching address. * -- 2.25.1