[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: fix crash
From: |
gnunet |
Subject: |
[gnunet] branch master updated: fix crash |
Date: |
Tue, 07 Apr 2020 00:05:13 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 8ad820fae fix crash
8ad820fae is described below
commit 8ad820fae4cf114fa9e12490eba19730c8a8a850
Author: Christian Grothoff <address@hidden>
AuthorDate: Tue Apr 7 00:00:38 2020 +0200
fix crash
---
src/statistics/gnunet-statistics.c | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)
diff --git a/src/statistics/gnunet-statistics.c
b/src/statistics/gnunet-statistics.c
index e004a0f1c..ae99662c4 100644
--- a/src/statistics/gnunet-statistics.c
+++ b/src/statistics/gnunet-statistics.c
@@ -371,7 +371,6 @@ clean_node (void *cls)
if (num_nodes == num_nodes_ready_shutdown)
{
GNUNET_array_grow (nodes, num_nodes, 0);
- GNUNET_CONTAINER_multihashmap_destroy (values);
}
}
@@ -384,7 +383,10 @@ clean_node (void *cls)
static void
print_finish (void *cls)
{
- GNUNET_CONTAINER_multihashmap_iterate (values, printer, NULL);
+ GNUNET_CONTAINER_multihashmap_iterate (values,
+ &printer,
+ NULL);
+ GNUNET_CONTAINER_multihashmap_destroy (values);
GNUNET_SCHEDULER_shutdown ();
}
@@ -398,7 +400,8 @@ print_finish (void *cls)
* @param succes Whether statistics were obtained successfully.
*/
static void
-continuation_print (void *cls, int success)
+continuation_print (void *cls,
+ int success)
{
const unsigned index_node = *(unsigned *) cls;
@@ -406,7 +409,9 @@ continuation_print (void *cls, int success)
if (GNUNET_OK != success)
{
if (NULL == remote_host)
- fprintf (stderr, "%s", _ ("Failed to obtain statistics.\n"));
+ fprintf (stderr,
+ "%s",
+ _ ("Failed to obtain statistics.\n"));
else
fprintf (stderr,
_ ("Failed to obtain statistics from host `%s:%llu'\n"),
@@ -419,11 +424,13 @@ continuation_print (void *cls, int success)
GNUNET_SCHEDULER_cancel (nodes[index_node].shutdown_task);
nodes[index_node].shutdown_task = NULL;
}
- GNUNET_SCHEDULER_add_now (clean_node, &nodes[index_node].index_node);
+ GNUNET_SCHEDULER_add_now (&clean_node,
+ &nodes[index_node].index_node);
num_nodes_ready++;
if (num_nodes_ready == num_nodes)
{
- GNUNET_SCHEDULER_add_now (print_finish, NULL);
+ GNUNET_SCHEDULER_add_now (&print_finish,
+ NULL);
}
}
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: fix crash,
gnunet <=