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/nse | |
parent | 92fd84dc7ef98452f848a62677c61a2b80b5835e (diff) | |
download | gnunet-e0ca7357cd0bfedc5c29cb731b56279fef8da059.tar.gz gnunet-e0ca7357cd0bfedc5c29cb731b56279fef8da059.zip |
malloc -> new
Diffstat (limited to 'src/nse')
-rw-r--r-- | src/nse/gnunet-nse-profiler.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nse/gnunet-nse-profiler.c b/src/nse/gnunet-nse-profiler.c index 2dbca7541..3e39056be 100644 --- a/src/nse/gnunet-nse-profiler.c +++ b/src/nse/gnunet-nse-profiler.c | |||
@@ -511,7 +511,7 @@ connect_nse_service () | |||
511 | (0 != (i % (num_peers_in_round[current_round] / connection_limit)))) | 511 | (0 != (i % (num_peers_in_round[current_round] / connection_limit)))) |
512 | continue; | 512 | continue; |
513 | LOG_DEBUG ("Connecting to nse service of peer %d\n", i); | 513 | LOG_DEBUG ("Connecting to nse service of peer %d\n", i); |
514 | current_peer = GNUNET_malloc (sizeof (struct NSEPeer)); | 514 | current_peer = GNUNET_new (struct NSEPeer); |
515 | current_peer->daemon = daemons[i]; | 515 | current_peer->daemon = daemons[i]; |
516 | current_peer->nse_op | 516 | current_peer->nse_op |
517 | = GNUNET_TESTBED_service_connect (NULL, | 517 | = GNUNET_TESTBED_service_connect (NULL, |
@@ -593,7 +593,7 @@ make_oplist_entry () | |||
593 | { | 593 | { |
594 | struct OpListEntry *entry; | 594 | struct OpListEntry *entry; |
595 | 595 | ||
596 | entry = GNUNET_malloc (sizeof (struct OpListEntry)); | 596 | entry = GNUNET_new (struct OpListEntry); |
597 | GNUNET_CONTAINER_DLL_insert_tail (oplist_head, oplist_tail, entry); | 597 | GNUNET_CONTAINER_DLL_insert_tail (oplist_head, oplist_tail, entry); |
598 | return entry; | 598 | return entry; |
599 | } | 599 | } |