(no commit message)
authorMatthias Wachs <wachs@net.in.tum.de>
Mon, 10 May 2010 09:18:29 +0000 (09:18 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Mon, 10 May 2010 09:18:29 +0000 (09:18 +0000)
src/transport/plugin_transport_http.c
src/transport/test_plugin_transport_http.c

index f52702f9c60e8dd57bc93d97c4e52cf0c41e668c..af8f5f38e0d6466e383ce7a2834043b51670a671 100644 (file)
@@ -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 */
index 3372aad3cdc4559147f8346547be94635354b14a..2705c7ea036d8cd87d32b3e7c3cb639c7c7e6de6 100644 (file)
@@ -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.