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_sqlite.c | |
parent | 92fd84dc7ef98452f848a62677c61a2b80b5835e (diff) | |
download | gnunet-e0ca7357cd0bfedc5c29cb731b56279fef8da059.tar.gz gnunet-e0ca7357cd0bfedc5c29cb731b56279fef8da059.zip |
malloc -> new
Diffstat (limited to 'src/datacache/plugin_datacache_sqlite.c')
-rw-r--r-- | src/datacache/plugin_datacache_sqlite.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/datacache/plugin_datacache_sqlite.c b/src/datacache/plugin_datacache_sqlite.c index 1901bdedd..b7f1757ca 100644 --- a/src/datacache/plugin_datacache_sqlite.c +++ b/src/datacache/plugin_datacache_sqlite.c | |||
@@ -438,11 +438,11 @@ libgnunet_plugin_datacache_sqlite_init (void *cls) | |||
438 | " path BLOB DEFAULT '')"); | 438 | " path BLOB DEFAULT '')"); |
439 | SQLITE3_EXEC (dbh, "CREATE INDEX idx_hashidx ON ds090 (key,type,expire)"); | 439 | SQLITE3_EXEC (dbh, "CREATE INDEX idx_hashidx ON ds090 (key,type,expire)"); |
440 | SQLITE3_EXEC (dbh, "CREATE INDEX idx_expire ON ds090 (expire)"); | 440 | SQLITE3_EXEC (dbh, "CREATE INDEX idx_expire ON ds090 (expire)"); |
441 | plugin = GNUNET_malloc (sizeof (struct Plugin)); | 441 | plugin = GNUNET_new (struct Plugin); |
442 | plugin->env = env; | 442 | plugin->env = env; |
443 | plugin->dbh = dbh; | 443 | plugin->dbh = dbh; |
444 | plugin->fn = fn_utf8; | 444 | plugin->fn = fn_utf8; |
445 | api = GNUNET_malloc (sizeof (struct GNUNET_DATACACHE_PluginFunctions)); | 445 | api = GNUNET_new (struct GNUNET_DATACACHE_PluginFunctions); |
446 | api->cls = plugin; | 446 | api->cls = plugin; |
447 | api->get = &sqlite_plugin_get; | 447 | api->get = &sqlite_plugin_get; |
448 | api->put = &sqlite_plugin_put; | 448 | api->put = &sqlite_plugin_put; |