- use proper signedness
[oweals/gnunet.git] / src / datastore / plugin_datastore_sqlite.c
index 9a4b40255ffbe6f33e12b38ecccee39fcff9d743..f2e0454f929d1a69e5822b32de545ff9aee46dde 100644 (file)
@@ -470,7 +470,7 @@ delete_by_rowid (struct Plugin *plugin, unsigned long long rid)
  * @param replication replication-level for the content
  * @param expiration expiration time for the content
  * @param msg set to an error message
- * @return GNUNET_OK on success
+ * @return #GNUNET_OK on success
  */
 static int
 sqlite_plugin_put (void *cls, const struct GNUNET_HashCode * key, uint32_t size,
@@ -1179,7 +1179,7 @@ libgnunet_plugin_datastore_sqlite_init (void *cls)
     database_shutdown (&plugin);
     return NULL;
   }
-  api = GNUNET_malloc (sizeof (struct GNUNET_DATASTORE_PluginFunctions));
+  api = GNUNET_new (struct GNUNET_DATASTORE_PluginFunctions);
   api->cls = &plugin;
   api->estimate_size = &sqlite_plugin_estimate_size;
   api->put = &sqlite_plugin_put;