diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-10-30 18:07:17 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-10-30 18:07:17 +0000 |
commit | 8aa9dd940e2eacf29456bc4940503a281210f111 (patch) | |
tree | eacc541b14f68c78387fcda45159c29446f8eb95 /src | |
parent | 1949a1e7a652f83b117e821d5c965892cf4a4abf (diff) | |
download | gnunet-8aa9dd940e2eacf29456bc4940503a281210f111.tar.gz gnunet-8aa9dd940e2eacf29456bc4940503a281210f111.zip |
fix
Diffstat (limited to 'src')
-rw-r--r-- | src/transport/plugin_transport_udp.c | 6 |
1 files 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, | |||
1424 | hello = &message[1]; | 1424 | hello = &message[1]; |
1425 | plugin->env->receive (plugin->env->cls, &msg->sender, hello, NULL, 0, NULL, (const char *) &mc->addr, sizeof (mc->addr)); | 1425 | plugin->env->receive (plugin->env->cls, &msg->sender, hello, NULL, 0, NULL, (const char *) &mc->addr, sizeof (mc->addr)); |
1426 | 1426 | ||
1427 | GNUNET_STATISTICS_update(plugin->env->cfg, _("# HELLO beacons received via udp"), 1, GNUNET_NO); | 1427 | GNUNET_STATISTICS_update(plugin->env->stats, |
1428 | _("# HELLO beacons received via udp"), 1, GNUNET_NO); | ||
1428 | GNUNET_free (mc); | 1429 | GNUNET_free (mc); |
1429 | } | 1430 | } |
1430 | 1431 | ||
@@ -2127,7 +2128,8 @@ libgnunet_plugin_transport_udp_init (void *cls) | |||
2127 | { | 2128 | { |
2128 | plugin->broadcast = GNUNET_YES; | 2129 | plugin->broadcast = GNUNET_YES; |
2129 | plugin->broadcast_mst = GNUNET_SERVER_mst_create (udp_broadcast_mst_cb, plugin); | 2130 | plugin->broadcast_mst = GNUNET_SERVER_mst_create (udp_broadcast_mst_cb, plugin); |
2130 | GNUNET_STATISTICS_update(plugin->env->cfg, _("# HELLO beacons received via udp"), 1, GNUNET_NO); | 2131 | GNUNET_STATISTICS_update(plugin->env->stats, |
2132 | _("# HELLO beacons received via udp"), 1, GNUNET_NO); | ||
2131 | plugin->select_broadcast_task = | 2133 | plugin->select_broadcast_task = |
2132 | GNUNET_SCHEDULER_add_select (GNUNET_SCHEDULER_PRIORITY_DEFAULT, | 2134 | GNUNET_SCHEDULER_add_select (GNUNET_SCHEDULER_PRIORITY_DEFAULT, |
2133 | GNUNET_SCHEDULER_NO_TASK, | 2135 | GNUNET_SCHEDULER_NO_TASK, |