gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r29479 - gnunet/src/statistics


From: gnunet
Subject: [GNUnet-SVN] r29479 - gnunet/src/statistics
Date: Mon, 23 Sep 2013 13:23:37 +0200

Author: grothoff
Date: 2013-09-23 13:23:37 +0200 (Mon, 23 Sep 2013)
New Revision: 29479

Modified:
   gnunet/src/statistics/gnunet-service-statistics.c
Log:
-cleanup

Modified: gnunet/src/statistics/gnunet-service-statistics.c
===================================================================
--- gnunet/src/statistics/gnunet-service-statistics.c   2013-09-23 10:50:28 UTC 
(rev 29478)
+++ gnunet/src/statistics/gnunet-service-statistics.c   2013-09-23 11:23:37 UTC 
(rev 29479)
@@ -409,7 +409,7 @@
     GNUNET_SERVER_receive_done (client, GNUNET_SYSERR);
     return NULL;
   }
-  ce = GNUNET_malloc (sizeof (struct ClientEntry));
+  ce = GNUNET_new (struct ClientEntry);
   ce->client = client;
   GNUNET_CONTAINER_DLL_insert (client_head, client_tail, ce);
   GNUNET_SERVER_notification_context_add (nc, client);
@@ -702,7 +702,7 @@
                 "New statistic on `%s:%s' with value %llu created.\n", service,
                 name, pos->value);
   }
-  we = GNUNET_malloc (sizeof (struct WatchEntry));
+  we = GNUNET_new (struct WatchEntry);
   we->client = client;
   we->last_value_set = GNUNET_NO;
   we->wid = ce->max_wid++;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]