aboutsummaryrefslogtreecommitdiff
path: root/src/datacache/plugin_datacache_heap.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/datacache/plugin_datacache_heap.c
parent92fd84dc7ef98452f848a62677c61a2b80b5835e (diff)
downloadgnunet-e0ca7357cd0bfedc5c29cb731b56279fef8da059.tar.gz
gnunet-e0ca7357cd0bfedc5c29cb731b56279fef8da059.zip
malloc -> new
Diffstat (limited to 'src/datacache/plugin_datacache_heap.c')
-rw-r--r--src/datacache/plugin_datacache_heap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/datacache/plugin_datacache_heap.c b/src/datacache/plugin_datacache_heap.c
index 85cf9487e..9689d4f05 100644
--- a/src/datacache/plugin_datacache_heap.c
+++ b/src/datacache/plugin_datacache_heap.c
@@ -393,12 +393,12 @@ libgnunet_plugin_datacache_heap_init (void *cls)
393 struct GNUNET_DATACACHE_PluginFunctions *api; 393 struct GNUNET_DATACACHE_PluginFunctions *api;
394 struct Plugin *plugin; 394 struct Plugin *plugin;
395 395
396 plugin = GNUNET_malloc (sizeof (struct Plugin)); 396 plugin = GNUNET_new (struct Plugin);
397 plugin->map = GNUNET_CONTAINER_multihashmap_create (1024, /* FIXME: base on quota! */ 397 plugin->map = GNUNET_CONTAINER_multihashmap_create (1024, /* FIXME: base on quota! */
398 GNUNET_YES); 398 GNUNET_YES);
399 plugin->heap = GNUNET_CONTAINER_heap_create (GNUNET_CONTAINER_HEAP_ORDER_MIN); 399 plugin->heap = GNUNET_CONTAINER_heap_create (GNUNET_CONTAINER_HEAP_ORDER_MIN);
400 plugin->env = env; 400 plugin->env = env;
401 api = GNUNET_malloc (sizeof (struct GNUNET_DATACACHE_PluginFunctions)); 401 api = GNUNET_new (struct GNUNET_DATACACHE_PluginFunctions);
402 api->cls = plugin; 402 api->cls = plugin;
403 api->get = &heap_plugin_get; 403 api->get = &heap_plugin_get;
404 api->put = &heap_plugin_put; 404 api->put = &heap_plugin_put;