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/peerinfo-tool/gnunet-peerinfo.c | |
parent | 92fd84dc7ef98452f848a62677c61a2b80b5835e (diff) | |
download | gnunet-e0ca7357cd0bfedc5c29cb731b56279fef8da059.tar.gz gnunet-e0ca7357cd0bfedc5c29cb731b56279fef8da059.zip |
malloc -> new
Diffstat (limited to 'src/peerinfo-tool/gnunet-peerinfo.c')
-rw-r--r-- | src/peerinfo-tool/gnunet-peerinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peerinfo-tool/gnunet-peerinfo.c b/src/peerinfo-tool/gnunet-peerinfo.c index e62df3047..f4a9d3aa6 100644 --- a/src/peerinfo-tool/gnunet-peerinfo.c +++ b/src/peerinfo-tool/gnunet-peerinfo.c | |||
@@ -364,7 +364,7 @@ print_peer_info (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
364 | GNUNET_i2s_full (peer)); | 364 | GNUNET_i2s_full (peer)); |
365 | return; | 365 | return; |
366 | } | 366 | } |
367 | pc = GNUNET_malloc (sizeof (struct PrintContext)); | 367 | pc = GNUNET_new (struct PrintContext); |
368 | GNUNET_CONTAINER_DLL_insert (pc_head, | 368 | GNUNET_CONTAINER_DLL_insert (pc_head, |
369 | pc_tail, | 369 | pc_tail, |
370 | pc); | 370 | pc); |