aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs_test_lib.c
diff options
context:
space:
mode:
authorLRN <lrn1986@gmail.com>2013-12-19 06:00:23 +0000
committerLRN <lrn1986@gmail.com>2013-12-19 06:00:23 +0000
commite0ca7357cd0bfedc5c29cb731b56279fef8da059 (patch)
treeecfd47cf59bc00e656b53fd59c58f5038e342d65 /src/fs/fs_test_lib.c
parent92fd84dc7ef98452f848a62677c61a2b80b5835e (diff)
downloadgnunet-e0ca7357cd0bfedc5c29cb731b56279fef8da059.tar.gz
gnunet-e0ca7357cd0bfedc5c29cb731b56279fef8da059.zip
malloc -> new
Diffstat (limited to 'src/fs/fs_test_lib.c')
-rw-r--r--src/fs/fs_test_lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fs/fs_test_lib.c b/src/fs/fs_test_lib.c
index 085ea3764..1e098bd60 100644
--- a/src/fs/fs_test_lib.c
+++ b/src/fs/fs_test_lib.c
@@ -452,7 +452,7 @@ GNUNET_FS_TEST_publish (struct GNUNET_TESTBED_Peer *peer,
452{ 452{
453 struct TestPublishOperation *po; 453 struct TestPublishOperation *po;
454 454
455 po = GNUNET_malloc (sizeof (struct TestPublishOperation)); 455 po = GNUNET_new (struct TestPublishOperation);
456 po->publish_cont = cont; 456 po->publish_cont = cont;
457 po->publish_cont_cls = cont_cls; 457 po->publish_cont_cls = cont_cls;
458 po->publish_seed = seed; 458 po->publish_seed = seed;
@@ -631,7 +631,7 @@ GNUNET_FS_TEST_download (struct GNUNET_TESTBED_Peer *peer,
631{ 631{
632 struct TestDownloadOperation *dop; 632 struct TestDownloadOperation *dop;
633 633
634 dop = GNUNET_malloc (sizeof (struct TestDownloadOperation)); 634 dop = GNUNET_new (struct TestDownloadOperation);
635 dop->uri = GNUNET_FS_uri_dup (uri); 635 dop->uri = GNUNET_FS_uri_dup (uri);
636 dop->size = GNUNET_FS_uri_chk_get_file_size (uri); 636 dop->size = GNUNET_FS_uri_chk_get_file_size (uri);
637 dop->verbose = verbose; 637 dop->verbose = verbose;