From a08f27d271f54b66659a873b8e1e5259478391ed Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Mon, 10 May 2010 09:18:29 +0000 Subject: [PATCH] --- src/transport/plugin_transport_http.c | 28 ++++++++++------------ src/transport/test_plugin_transport_http.c | 2 +- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/src/transport/plugin_transport_http.c b/src/transport/plugin_transport_http.c index f52702f9c..af8f5f38e 100644 --- a/src/transport/plugin_transport_http.c +++ b/src/transport/plugin_transport_http.c @@ -262,7 +262,19 @@ template_plugin_address_to_string (void *cls, return NULL; } +/** + * Exit point from the plugin. + */ +void * +libgnunet_plugin_transport_http_done (void *cls) +{ + struct GNUNET_TRANSPORT_PluginFunctions *api = cls; + struct Plugin *plugin = api->cls; + GNUNET_free (plugin); + GNUNET_free (api); + return NULL; +} /** @@ -274,6 +286,7 @@ libgnunet_plugin_transport_http_init (void *cls) struct GNUNET_TRANSPORT_PluginEnvironment *env = cls; struct GNUNET_TRANSPORT_PluginFunctions *api; struct Plugin *plugin; + long long unsigned int port; plugin = GNUNET_malloc (sizeof (struct Plugin)); plugin->env = env; @@ -306,19 +319,4 @@ libgnunet_plugin_transport_http_init (void *cls) return api; } - -/** - * Exit point from the plugin. - */ -void * -libgnunet_plugin_transport_http_done (void *cls) -{ - struct GNUNET_TRANSPORT_PluginFunctions *api = cls; - struct Plugin *plugin = api->cls; - - GNUNET_free (plugin); - GNUNET_free (api); - return NULL; -} - /* end of plugin_transport_template.c */ diff --git a/src/transport/test_plugin_transport_http.c b/src/transport/test_plugin_transport_http.c index 3372aad3c..2705c7ea0 100644 --- a/src/transport/test_plugin_transport_http.c +++ b/src/transport/test_plugin_transport_http.c @@ -217,6 +217,7 @@ cont_func (void *cls, int success) { stat_get_handle = NULL; } +#endif /** * Task that checks if we should try to download a hostlist. @@ -251,7 +252,6 @@ task_check_stat (void *cls, ti_check_stat = GNUNET_SCHEDULER_add_delayed (sched, STAT_INTERVALL, &task_check_stat, NULL); return; } -#endif /** * Runs the test. -- 2.25.1