aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_template.c
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2010-05-04 12:36:12 +0000
committerNathan S. Evans <evans@in.tum.de>2010-05-04 12:36:12 +0000
commit258667cf7131a7a710965d1220604a185a07fb3b (patch)
treed123f5abff4b63f8330a92a5927f7f394912d230 /src/transport/plugin_transport_template.c
parent3d8988d8bda24d394d72302cefd0d7d76336d068 (diff)
downloadgnunet-258667cf7131a7a710965d1220604a185a07fb3b.tar.gz
gnunet-258667cf7131a7a710965d1220604a185a07fb3b.zip
get rid of duplicate statistics handle in each plugin
Diffstat (limited to 'src/transport/plugin_transport_template.c')
-rw-r--r--src/transport/plugin_transport_template.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/transport/plugin_transport_template.c b/src/transport/plugin_transport_template.c
index f83329ffa..f5eec84d3 100644
--- a/src/transport/plugin_transport_template.c
+++ b/src/transport/plugin_transport_template.c
@@ -122,11 +122,6 @@ struct Plugin
122 */ 122 */
123 struct Session *sessions; 123 struct Session *sessions;
124 124
125 /**
126 * Handle for the statistics service.
127 */
128 struct GNUNET_STATISTICS_Handle *statistics;
129
130}; 125};
131 126
132/** 127/**
@@ -282,7 +277,6 @@ gnunet_plugin_transport_template_init (void *cls)
282 277
283 plugin = GNUNET_malloc (sizeof (struct Plugin)); 278 plugin = GNUNET_malloc (sizeof (struct Plugin));
284 plugin->env = env; 279 plugin->env = env;
285 plugin->statistics = NULL;
286 api = GNUNET_malloc (sizeof (struct GNUNET_TRANSPORT_PluginFunctions)); 280 api = GNUNET_malloc (sizeof (struct GNUNET_TRANSPORT_PluginFunctions));
287 api->cls = plugin; 281 api->cls = plugin;
288 api->send = &template_plugin_send; 282 api->send = &template_plugin_send;