gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r11260 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r11260 - gnunet/src/transport
Date: Fri, 7 May 2010 17:38:19 +0200

Author: wachs
Date: 2010-05-07 17:38:19 +0200 (Fri, 07 May 2010)
New Revision: 11260

Modified:
   gnunet/src/transport/plugin_transport_http.c
   gnunet/src/transport/test_plugin_transport_http.c
Log:


Modified: gnunet/src/transport/plugin_transport_http.c
===================================================================
--- gnunet/src/transport/plugin_transport_http.c        2010-05-07 15:07:14 UTC 
(rev 11259)
+++ gnunet/src/transport/plugin_transport_http.c        2010-05-07 15:38:19 UTC 
(rev 11260)
@@ -158,7 +158,7 @@
                       size_t msgbuf_size,
                       unsigned int priority,
                       struct GNUNET_TIME_Relative timeout,
-                     struct Session *session,
+                      struct Session *session,
                       const void *addr,
                       size_t addrlen,
                       int force_address,
@@ -255,8 +255,8 @@
  */
 static const char*
 template_plugin_address_to_string (void *cls,
-                                  const void *addr,
-                                  size_t addrlen)
+                                   const void *addr,
+                                   size_t addrlen)
 {
   GNUNET_break (0);
   return NULL;
@@ -275,8 +275,6 @@
   struct GNUNET_TRANSPORT_PluginFunctions *api;
   struct Plugin *plugin;
 
-  GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Init HTTP transport plugin\n"));
-
   plugin = GNUNET_malloc (sizeof (struct Plugin));
   plugin->env = env;
   api = GNUNET_malloc (sizeof (struct GNUNET_TRANSPORT_PluginFunctions));
@@ -299,8 +297,6 @@
   struct GNUNET_TRANSPORT_PluginFunctions *api = cls;
   struct Plugin *plugin = api->cls;
 
-  GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Shutting down HTTP transport 
plugin\n"));
-
   GNUNET_free (plugin);
   GNUNET_free (api);
   return NULL;

Modified: gnunet/src/transport/test_plugin_transport_http.c
===================================================================
--- gnunet/src/transport/test_plugin_transport_http.c   2010-05-07 15:07:14 UTC 
(rev 11259)
+++ gnunet/src/transport/test_plugin_transport_http.c   2010-05-07 15:38:19 UTC 
(rev 11260)
@@ -42,6 +42,8 @@
 #define VERBOSE GNUNET_YES
 #define DEBUG GNUNET_YES
 
+#define PLUGIN libgnunet_plugin_transport_template
+
 /**
  * How long until we give up on transmitting the message?
  */
@@ -162,7 +164,7 @@
     GNUNET_SCHEDULER_cancel(sched,ti_check_stat);
   ti_check_stat = GNUNET_SCHEDULER_NO_TASK;
 
-  GNUNET_assert (NULL == GNUNET_PLUGIN_unload 
("libgnunet_plugin_transport_http", api));
+  GNUNET_assert (NULL == GNUNET_PLUGIN_unload 
("libgnunet_plugin_transport_template", api));
   GNUNET_SCHEDULER_shutdown(sched);
   /* FIXME: */ fail = GNUNET_NO;
   return;
@@ -276,8 +278,8 @@
 
   /* load plugins... */
   setup_plugin_environment ();
-  GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Loading HTTP transport plugin\n"));
-  GNUNET_asprintf (&libname, "libgnunet_plugin_transport_http");
+  GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Loading HTTP transport plugin 
`%s'\n"),"libgnunet_plugin_transport_template");
+  GNUNET_asprintf (&libname, "libgnunet_plugin_transport_template");
   api = GNUNET_PLUGIN_load (libname, &env);
   GNUNET_free (libname);
   if (api == NULL)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]