From 6df84e865fb0ae80c2e6a8796869e36e98bce297 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 17 May 2010 18:04:56 +0000 Subject: [PATCH] fix --- src/datacache/test_datacache_quota.c | 6 +++--- src/hostlist/gnunet-daemon-hostlist.c | 10 ---------- src/transport/plugin_transport_http.c | 1 - 3 files changed, 3 insertions(+), 14 deletions(-) diff --git a/src/datacache/test_datacache_quota.c b/src/datacache/test_datacache_quota.c index 6a8c3c516..f1bf8c436 100644 --- a/src/datacache/test_datacache_quota.c +++ b/src/datacache/test_datacache_quota.c @@ -113,7 +113,7 @@ FAILURE: static int check () { - char *const argv[] = { "test-datacache-api-quota", + char *const argv[] = { "test-datacache-quota", "-c", "test_datacache_data.conf", #if VERBOSE @@ -125,7 +125,7 @@ check () GNUNET_GETOPT_OPTION_END }; GNUNET_PROGRAM_run ((sizeof (argv) / sizeof (char *)) - 1, - argv, "test-datacache-api-quota", "nohelp", + argv, "test-datacache-quota", "nohelp", options, &run, NULL); if (ok != 0) fprintf (stderr, "Missed some testcases: %d\n", ok); @@ -138,7 +138,7 @@ main (int argc, char *argv[]) { int ret; - GNUNET_log_setup ("test-datacache-api-quota", + GNUNET_log_setup ("test-datacache-quota", #if VERBOSE "DEBUG", #else diff --git a/src/hostlist/gnunet-daemon-hostlist.c b/src/hostlist/gnunet-daemon-hostlist.c index cf0f646ed..9d85e6672 100644 --- a/src/hostlist/gnunet-daemon-hostlist.c +++ b/src/hostlist/gnunet-daemon-hostlist.c @@ -74,11 +74,6 @@ static int bootstrapping; */ static int learning; -/** - * Our configuration. - */ -static const struct GNUNET_CONFIGURATION_Handle *cfg; - /** * Statistics handle. */ @@ -256,11 +251,6 @@ cleaning_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) GNUNET_NO); stats = NULL; } - if (cfg != NULL) - { - GNUNET_CONFIGURATION_destroy(cfg); - cfg = NULL; - } } /** diff --git a/src/transport/plugin_transport_http.c b/src/transport/plugin_transport_http.c index 085cb78a0..4c63997cd 100644 --- a/src/transport/plugin_transport_http.c +++ b/src/transport/plugin_transport_http.c @@ -337,7 +337,6 @@ accessHandlerCallback (void *cls, struct MHD_Response *response; http_session = *httpSessionCache; - struct sockaddr *addr; struct sockaddr_in *addrin; struct sockaddr_in6 *addrin6; char * address; -- 2.25.1