fix
authorChristian Grothoff <christian@grothoff.org>
Sun, 30 Oct 2011 18:07:17 +0000 (18:07 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 30 Oct 2011 18:07:17 +0000 (18:07 +0000)
src/transport/plugin_transport_udp.c

index 076fb6b3b91490f3231adb2c275738f0e598c077..cc0f468516ef165d48abc8edec2ded310ee59d16 100644 (file)
@@ -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,