From 8aa9dd940e2eacf29456bc4940503a281210f111 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 30 Oct 2011 18:07:17 +0000 Subject: [PATCH] fix --- src/transport/plugin_transport_udp.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c index 076fb6b3b..cc0f46851 100644 --- a/src/transport/plugin_transport_udp.c +++ b/src/transport/plugin_transport_udp.c @@ -1424,7 +1424,8 @@ void udp_broadcast_mst_cb (void *cls, void *client, hello = &message[1]; plugin->env->receive (plugin->env->cls, &msg->sender, hello, NULL, 0, NULL, (const char *) &mc->addr, sizeof (mc->addr)); - GNUNET_STATISTICS_update(plugin->env->cfg, _("# HELLO beacons received via udp"), 1, GNUNET_NO); + GNUNET_STATISTICS_update(plugin->env->stats, + _("# HELLO beacons received via udp"), 1, GNUNET_NO); GNUNET_free (mc); } @@ -2127,7 +2128,8 @@ libgnunet_plugin_transport_udp_init (void *cls) { plugin->broadcast = GNUNET_YES; plugin->broadcast_mst = GNUNET_SERVER_mst_create (udp_broadcast_mst_cb, plugin); - GNUNET_STATISTICS_update(plugin->env->cfg, _("# HELLO beacons received via udp"), 1, GNUNET_NO); + GNUNET_STATISTICS_update(plugin->env->stats, + _("# HELLO beacons received via udp"), 1, GNUNET_NO); plugin->select_broadcast_task = GNUNET_SCHEDULER_add_select (GNUNET_SCHEDULER_PRIORITY_DEFAULT, GNUNET_SCHEDULER_NO_TASK, -- 2.25.1