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/fs/gnunet-service-fs_pr.c | |
parent | 92fd84dc7ef98452f848a62677c61a2b80b5835e (diff) | |
download | gnunet-e0ca7357cd0bfedc5c29cb731b56279fef8da059.tar.gz gnunet-e0ca7357cd0bfedc5c29cb731b56279fef8da059.zip |
malloc -> new
Diffstat (limited to 'src/fs/gnunet-service-fs_pr.c')
-rw-r--r-- | src/fs/gnunet-service-fs_pr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fs/gnunet-service-fs_pr.c b/src/fs/gnunet-service-fs_pr.c index e3ce8dd69..0af19d537 100644 --- a/src/fs/gnunet-service-fs_pr.c +++ b/src/fs/gnunet-service-fs_pr.c | |||
@@ -1078,7 +1078,7 @@ handle_dht_reply (void *cls, struct GNUNET_TIME_Absolute exp, | |||
1078 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1078 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1079 | "Replicating result for query `%s' with priority %u\n", | 1079 | "Replicating result for query `%s' with priority %u\n", |
1080 | GNUNET_h2s (key), prq.priority); | 1080 | GNUNET_h2s (key), prq.priority); |
1081 | pmc = GNUNET_malloc (sizeof (struct PutMigrationContext)); | 1081 | pmc = GNUNET_new (struct PutMigrationContext); |
1082 | pmc->start = GNUNET_TIME_absolute_get (); | 1082 | pmc->start = GNUNET_TIME_absolute_get (); |
1083 | pmc->requested = GNUNET_YES; | 1083 | pmc->requested = GNUNET_YES; |
1084 | if (NULL == | 1084 | if (NULL == |
@@ -1675,7 +1675,7 @@ GSF_handle_p2p_content_ (struct GSF_ConnectedPeer *cp, | |||
1675 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1675 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1676 | "Replicating result for query `%s' with priority %u\n", | 1676 | "Replicating result for query `%s' with priority %u\n", |
1677 | GNUNET_h2s (&query), prq.priority); | 1677 | GNUNET_h2s (&query), prq.priority); |
1678 | pmc = GNUNET_malloc (sizeof (struct PutMigrationContext)); | 1678 | pmc = GNUNET_new (struct PutMigrationContext); |
1679 | pmc->start = GNUNET_TIME_absolute_get (); | 1679 | pmc->start = GNUNET_TIME_absolute_get (); |
1680 | pmc->requested = prq.request_found; | 1680 | pmc->requested = prq.request_found; |
1681 | GNUNET_assert (0 != GSF_get_peer_performance_data_ (cp)->pid); | 1681 | GNUNET_assert (0 != GSF_get_peer_performance_data_ (cp)->pid); |