aboutsummaryrefslogtreecommitdiff
path: root/src/statistics/gnunet-service-statistics.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-09-23 11:23:37 +0000
committerChristian Grothoff <christian@grothoff.org>2013-09-23 11:23:37 +0000
commit675fd226541178e8261519d719e9f336d7e7f2a6 (patch)
treeae4d787b9de66eb20f7624600b1c2ecf3ef3cf60 /src/statistics/gnunet-service-statistics.c
parent7bcb01815e30bab21204f1d974f727130b2a7884 (diff)
downloadgnunet-675fd226541178e8261519d719e9f336d7e7f2a6.tar.gz
gnunet-675fd226541178e8261519d719e9f336d7e7f2a6.zip
-cleanup
Diffstat (limited to 'src/statistics/gnunet-service-statistics.c')
-rw-r--r--src/statistics/gnunet-service-statistics.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/statistics/gnunet-service-statistics.c b/src/statistics/gnunet-service-statistics.c
index 77939d7b4..737ecd7a3 100644
--- a/src/statistics/gnunet-service-statistics.c
+++ b/src/statistics/gnunet-service-statistics.c
@@ -409,7 +409,7 @@ make_client_entry (struct GNUNET_SERVER_Client *client)
409 GNUNET_SERVER_receive_done (client, GNUNET_SYSERR); 409 GNUNET_SERVER_receive_done (client, GNUNET_SYSERR);
410 return NULL; 410 return NULL;
411 } 411 }
412 ce = GNUNET_malloc (sizeof (struct ClientEntry)); 412 ce = GNUNET_new (struct ClientEntry);
413 ce->client = client; 413 ce->client = client;
414 GNUNET_CONTAINER_DLL_insert (client_head, client_tail, ce); 414 GNUNET_CONTAINER_DLL_insert (client_head, client_tail, ce);
415 GNUNET_SERVER_notification_context_add (nc, client); 415 GNUNET_SERVER_notification_context_add (nc, client);
@@ -702,7 +702,7 @@ handle_watch (void *cls, struct GNUNET_SERVER_Client *client,
702 "New statistic on `%s:%s' with value %llu created.\n", service, 702 "New statistic on `%s:%s' with value %llu created.\n", service,
703 name, pos->value); 703 name, pos->value);
704 } 704 }
705 we = GNUNET_malloc (sizeof (struct WatchEntry)); 705 we = GNUNET_new (struct WatchEntry);
706 we->client = client; 706 we->client = client;
707 we->last_value_set = GNUNET_NO; 707 we->last_value_set = GNUNET_NO;
708 we->wid = ce->max_wid++; 708 we->wid = ce->max_wid++;