diff options
author | LRN <lrn1986@gmail.com> | 2013-12-19 06:00:23 +0000 |
---|---|---|
committer | LRN <lrn1986@gmail.com> | 2013-12-19 06:00:23 +0000 |
commit | e0ca7357cd0bfedc5c29cb731b56279fef8da059 (patch) | |
tree | ecfd47cf59bc00e656b53fd59c58f5038e342d65 /src/testbed/testbed_logger_api.c | |
parent | 92fd84dc7ef98452f848a62677c61a2b80b5835e (diff) | |
download | gnunet-e0ca7357cd0bfedc5c29cb731b56279fef8da059.tar.gz gnunet-e0ca7357cd0bfedc5c29cb731b56279fef8da059.zip |
malloc -> new
Diffstat (limited to 'src/testbed/testbed_logger_api.c')
-rw-r--r-- | src/testbed/testbed_logger_api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testbed/testbed_logger_api.c b/src/testbed/testbed_logger_api.c index 562902218..399e26a2f 100644 --- a/src/testbed/testbed_logger_api.c +++ b/src/testbed/testbed_logger_api.c | |||
@@ -277,7 +277,7 @@ queue_message (struct GNUNET_TESTBED_LOGGER_Handle *h, | |||
277 | 277 | ||
278 | type = ntohs (msg->type); | 278 | type = ntohs (msg->type); |
279 | size = ntohs (msg->size); | 279 | size = ntohs (msg->size); |
280 | mq = GNUNET_malloc (sizeof (struct MessageQueue)); | 280 | mq = GNUNET_new (struct MessageQueue); |
281 | mq->msg = msg; | 281 | mq->msg = msg; |
282 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 282 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
283 | "Queueing message of type %u, size %u for sending\n", type, | 283 | "Queueing message of type %u, size %u for sending\n", type, |
@@ -333,7 +333,7 @@ GNUNET_TESTBED_LOGGER_connect (const struct GNUNET_CONFIGURATION_Handle *cfg) | |||
333 | client = GNUNET_CLIENT_connect ("testbed-logger", cfg); | 333 | client = GNUNET_CLIENT_connect ("testbed-logger", cfg); |
334 | if (NULL == client) | 334 | if (NULL == client) |
335 | return NULL; | 335 | return NULL; |
336 | h = GNUNET_malloc (sizeof (struct GNUNET_TESTBED_LOGGER_Handle)); | 336 | h = GNUNET_new (struct GNUNET_TESTBED_LOGGER_Handle); |
337 | h->client = client; | 337 | h->client = client; |
338 | return h; | 338 | return h; |
339 | } | 339 | } |