aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-05-17 18:04:56 +0000
committerChristian Grothoff <christian@grothoff.org>2010-05-17 18:04:56 +0000
commit6df84e865fb0ae80c2e6a8796869e36e98bce297 (patch)
treeb688a43d89fb1f751d0a42ee1eee81ccfa6971d7
parent7603335652c521e1cf68b15a8a187986bba40f25 (diff)
downloadgnunet-6df84e865fb0ae80c2e6a8796869e36e98bce297.tar.gz
gnunet-6df84e865fb0ae80c2e6a8796869e36e98bce297.zip
fix
-rw-r--r--src/datacache/test_datacache_quota.c6
-rw-r--r--src/hostlist/gnunet-daemon-hostlist.c10
-rw-r--r--src/transport/plugin_transport_http.c1
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:
113static int 113static int
114check () 114check ()
115{ 115{
116 char *const argv[] = { "test-datacache-api-quota", 116 char *const argv[] = { "test-datacache-quota",
117 "-c", 117 "-c",
118 "test_datacache_data.conf", 118 "test_datacache_data.conf",
119#if VERBOSE 119#if VERBOSE
@@ -125,7 +125,7 @@ check ()
125 GNUNET_GETOPT_OPTION_END 125 GNUNET_GETOPT_OPTION_END
126 }; 126 };
127 GNUNET_PROGRAM_run ((sizeof (argv) / sizeof (char *)) - 1, 127 GNUNET_PROGRAM_run ((sizeof (argv) / sizeof (char *)) - 1,
128 argv, "test-datacache-api-quota", "nohelp", 128 argv, "test-datacache-quota", "nohelp",
129 options, &run, NULL); 129 options, &run, NULL);
130 if (ok != 0) 130 if (ok != 0)
131 fprintf (stderr, "Missed some testcases: %d\n", ok); 131 fprintf (stderr, "Missed some testcases: %d\n", ok);
@@ -138,7 +138,7 @@ main (int argc, char *argv[])
138{ 138{
139 int ret; 139 int ret;
140 140
141 GNUNET_log_setup ("test-datacache-api-quota", 141 GNUNET_log_setup ("test-datacache-quota",
142#if VERBOSE 142#if VERBOSE
143 "DEBUG", 143 "DEBUG",
144#else 144#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
@@ -75,11 +75,6 @@ static int bootstrapping;
75static int learning; 75static int learning;
76 76
77/** 77/**
78 * Our configuration.
79 */
80static const struct GNUNET_CONFIGURATION_Handle *cfg;
81
82/**
83 * Statistics handle. 78 * Statistics handle.
84 */ 79 */
85static struct GNUNET_STATISTICS_Handle *stats; 80static struct GNUNET_STATISTICS_Handle *stats;
@@ -256,11 +251,6 @@ cleaning_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
256 GNUNET_NO); 251 GNUNET_NO);
257 stats = NULL; 252 stats = NULL;
258 } 253 }
259 if (cfg != NULL)
260 {
261 GNUNET_CONFIGURATION_destroy(cfg);
262 cfg = NULL;
263 }
264} 254}
265 255
266/** 256/**
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,
337 struct MHD_Response *response; 337 struct MHD_Response *response;
338 http_session = *httpSessionCache; 338 http_session = *httpSessionCache;
339 339
340 struct sockaddr *addr;
341 struct sockaddr_in *addrin; 340 struct sockaddr_in *addrin;
342 struct sockaddr_in6 *addrin6; 341 struct sockaddr_in6 *addrin6;
343 char * address; 342 char * address;