diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/transport/transport_api_monitor_plugins.c | 1 | ||||
-rw-r--r-- | src/util/container_multihashmap32.c | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/transport/transport_api_monitor_plugins.c b/src/transport/transport_api_monitor_plugins.c index 290092c22..055228fa8 100644 --- a/src/transport/transport_api_monitor_plugins.c +++ b/src/transport/transport_api_monitor_plugins.c | |||
@@ -399,6 +399,7 @@ GNUNET_TRANSPORT_monitor_plugins (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
399 | pm->cb_cls = cb_cls; | 399 | pm->cb_cls = cb_cls; |
400 | pm->cfg = cfg; | 400 | pm->cfg = cfg; |
401 | pm->client = client; | 401 | pm->client = client; |
402 | pm->sessions = GNUNET_CONTAINER_multihashmap32_create (128); | ||
402 | send_plugin_mon_request (pm); | 403 | send_plugin_mon_request (pm); |
403 | return pm; | 404 | return pm; |
404 | } | 405 | } |
diff --git a/src/util/container_multihashmap32.c b/src/util/container_multihashmap32.c index 365333de2..35b62ad74 100644 --- a/src/util/container_multihashmap32.c +++ b/src/util/container_multihashmap32.c | |||
@@ -219,9 +219,9 @@ GNUNET_CONTAINER_multihashmap32_get (const struct | |||
219 | * | 219 | * |
220 | * @param map the map | 220 | * @param map the map |
221 | * @param it function to call on each entry | 221 | * @param it function to call on each entry |
222 | * @param it_cls extra argument to it | 222 | * @param it_cls extra argument to @a it |
223 | * @return the number of key value pairs processed, | 223 | * @return the number of key value pairs processed, |
224 | * GNUNET_SYSERR if it aborted iteration | 224 | * #GNUNET_SYSERR if it aborted iteration |
225 | */ | 225 | */ |
226 | int | 226 | int |
227 | GNUNET_CONTAINER_multihashmap32_iterate (const struct | 227 | GNUNET_CONTAINER_multihashmap32_iterate (const struct |
@@ -235,7 +235,7 @@ GNUNET_CONTAINER_multihashmap32_iterate (const struct | |||
235 | struct MapEntry *n; | 235 | struct MapEntry *n; |
236 | 236 | ||
237 | count = 0; | 237 | count = 0; |
238 | GNUNET_assert (map != NULL); | 238 | GNUNET_assert (NULL != map); |
239 | for (i = 0; i < map->map_length; i++) | 239 | for (i = 0; i < map->map_length; i++) |
240 | { | 240 | { |
241 | n = map->map[i]; | 241 | n = map->map[i]; |