diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-10-21 12:46:53 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-10-21 12:46:53 +0000 |
commit | 2f5ff51a670d99bfa3a5f1a94ced40c0e48e9a05 (patch) | |
tree | af4e2e4e4f747e16bc22b43df68020b055e337da | |
parent | 244acf03bb6313c3e8a900c940f1eed5536c7aa9 (diff) | |
download | gnunet-2f5ff51a670d99bfa3a5f1a94ced40c0e48e9a05.tar.gz gnunet-2f5ff51a670d99bfa3a5f1a94ced40c0e48e9a05.zip |
fix
-rw-r--r-- | src/datastore/plugin_datastore_sqlite.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/datastore/plugin_datastore_sqlite.c b/src/datastore/plugin_datastore_sqlite.c index b5d5990c6..3f05280a8 100644 --- a/src/datastore/plugin_datastore_sqlite.c +++ b/src/datastore/plugin_datastore_sqlite.c | |||
@@ -1580,7 +1580,7 @@ libgnunet_plugin_datastore_sqlite_init (void *cls) | |||
1580 | return NULL; /* can only initialize once! */ | 1580 | return NULL; /* can only initialize once! */ |
1581 | memset (&plugin, 0, sizeof(struct Plugin)); | 1581 | memset (&plugin, 0, sizeof(struct Plugin)); |
1582 | plugin.env = env; | 1582 | plugin.env = env; |
1583 | GNUNET_ARM_start_services (env->cfg, env->sched, "statistics"); | 1583 | GNUNET_ARM_start_services (env->cfg, env->sched, "statistics", NULL); |
1584 | plugin.statistics = GNUNET_STATISTICS_create (env->sched, | 1584 | plugin.statistics = GNUNET_STATISTICS_create (env->sched, |
1585 | "sqlite", | 1585 | "sqlite", |
1586 | env->cfg); | 1586 | env->cfg); |
@@ -1595,7 +1595,7 @@ libgnunet_plugin_datastore_sqlite_init (void *cls) | |||
1595 | database_setup (env->cfg, &plugin)) | 1595 | database_setup (env->cfg, &plugin)) |
1596 | { | 1596 | { |
1597 | database_shutdown (&plugin); | 1597 | database_shutdown (&plugin); |
1598 | GNUNET_ARM_stop_services (env->cfg, env->sched, "statistics"); | 1598 | GNUNET_ARM_stop_services (env->cfg, env->sched, "statistics", NULL); |
1599 | return NULL; | 1599 | return NULL; |
1600 | } | 1600 | } |
1601 | api = GNUNET_malloc (sizeof (struct GNUNET_DATASTORE_PluginFunctions)); | 1601 | api = GNUNET_malloc (sizeof (struct GNUNET_DATASTORE_PluginFunctions)); |
@@ -1637,7 +1637,7 @@ libgnunet_plugin_datastore_sqlite_done (void *cls) | |||
1637 | plugin->env = NULL; | 1637 | plugin->env = NULL; |
1638 | plugin->payload = 0; | 1638 | plugin->payload = 0; |
1639 | GNUNET_STATISTICS_destroy (plugin->statistics); | 1639 | GNUNET_STATISTICS_destroy (plugin->statistics); |
1640 | GNUNET_ARM_stop_services (plugin->env->cfg, plugin->env->sched, "statistics"); | 1640 | GNUNET_ARM_stop_services (plugin->env->cfg, plugin->env->sched, "statistics", NULL); |
1641 | GNUNET_free (api); | 1641 | GNUNET_free (api); |
1642 | if (fn != NULL) | 1642 | if (fn != NULL) |
1643 | { | 1643 | { |