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/datacache/plugin_datacache_template.c | |
parent | 92fd84dc7ef98452f848a62677c61a2b80b5835e (diff) | |
download | gnunet-e0ca7357cd0bfedc5c29cb731b56279fef8da059.tar.gz gnunet-e0ca7357cd0bfedc5c29cb731b56279fef8da059.zip |
malloc -> new
Diffstat (limited to 'src/datacache/plugin_datacache_template.c')
-rw-r--r-- | src/datacache/plugin_datacache_template.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/datacache/plugin_datacache_template.c b/src/datacache/plugin_datacache_template.c index 306615571..205cc66c7 100644 --- a/src/datacache/plugin_datacache_template.c +++ b/src/datacache/plugin_datacache_template.c | |||
@@ -114,9 +114,9 @@ libgnunet_plugin_datacache_template_init (void *cls) | |||
114 | struct GNUNET_DATACACHE_PluginFunctions *api; | 114 | struct GNUNET_DATACACHE_PluginFunctions *api; |
115 | struct Plugin *plugin; | 115 | struct Plugin *plugin; |
116 | 116 | ||
117 | plugin = GNUNET_malloc (sizeof (struct Plugin)); | 117 | plugin = GNUNET_new (struct Plugin); |
118 | plugin->env = env; | 118 | plugin->env = env; |
119 | api = GNUNET_malloc (sizeof (struct GNUNET_DATACACHE_PluginFunctions)); | 119 | api = GNUNET_new (struct GNUNET_DATACACHE_PluginFunctions); |
120 | api->cls = plugin; | 120 | api->cls = plugin; |
121 | api->get = &template_plugin_get; | 121 | api->get = &template_plugin_get; |
122 | api->put = &template_plugin_put; | 122 | api->put = &template_plugin_put; |