aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/arm/test_arm_api.c15
-rw-r--r--src/arm/test_exponential_backoff.c14
-rw-r--r--src/gns/gnunet-gns-proxy.c4
-rw-r--r--src/util/program.c16
4 files changed, 18 insertions, 31 deletions
diff --git a/src/arm/test_arm_api.c b/src/arm/test_arm_api.c
index 67bf45871..6bd5132ee 100644
--- a/src/arm/test_arm_api.c
+++ b/src/arm/test_arm_api.c
@@ -185,22 +185,7 @@ static void
185task (void *cls, char *const *args, const char *cfgfile, 185task (void *cls, char *const *args, const char *cfgfile,
186 const struct GNUNET_CONFIGURATION_Handle *c) 186 const struct GNUNET_CONFIGURATION_Handle *c)
187{ 187{
188 char *armconfig;
189 cfg = c; 188 cfg = c;
190 if (NULL != cfgfile)
191 {
192 if (GNUNET_OK !=
193 GNUNET_CONFIGURATION_get_value_filename (cfg,
194 "arm", "CONFIG",
195 &armconfig))
196 {
197 GNUNET_CONFIGURATION_set_value_string ((struct GNUNET_CONFIGURATION_Handle
198 *) cfg, "arm", "CONFIG",
199 cfgfile);
200 }
201 else
202 GNUNET_free (armconfig);
203 }
204 arm = GNUNET_ARM_connect (cfg, &arm_conn, NULL); 189 arm = GNUNET_ARM_connect (cfg, &arm_conn, NULL);
205 if (NULL == arm) 190 if (NULL == arm)
206 return; 191 return;
diff --git a/src/arm/test_exponential_backoff.c b/src/arm/test_exponential_backoff.c
index a14103be0..d0277523b 100644
--- a/src/arm/test_exponential_backoff.c
+++ b/src/arm/test_exponential_backoff.c
@@ -356,21 +356,7 @@ static void
356task (void *cls, char *const *args, const char *cfgfile, 356task (void *cls, char *const *args, const char *cfgfile,
357 const struct GNUNET_CONFIGURATION_Handle *c) 357 const struct GNUNET_CONFIGURATION_Handle *c)
358{ 358{
359 char *armconfig;
360 cfg = c; 359 cfg = c;
361 if (NULL != cfgfile)
362 {
363 if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_filename (cfg, "arm",
364 "CONFIG", &armconfig))
365 {
366 GNUNET_CONFIGURATION_set_value_string ((struct GNUNET_CONFIGURATION_Handle
367 *) cfg, "arm", "CONFIG",
368 cfgfile);
369 }
370 else
371 GNUNET_free (armconfig);
372 }
373
374 arm = GNUNET_ARM_connect (cfg, NULL, NULL); 360 arm = GNUNET_ARM_connect (cfg, NULL, NULL);
375 if (NULL != arm) 361 if (NULL != arm)
376 { 362 {
diff --git a/src/gns/gnunet-gns-proxy.c b/src/gns/gnunet-gns-proxy.c
index d52b3b57f..08cfdf4df 100644
--- a/src/gns/gnunet-gns-proxy.c
+++ b/src/gns/gnunet-gns-proxy.c
@@ -522,7 +522,7 @@ struct Socks5Request
522 * HTTP request headers for the curl request. 522 * HTTP request headers for the curl request.
523 */ 523 */
524 struct curl_slist *headers; 524 struct curl_slist *headers;
525 525
526 /** 526 /**
527 * DNS->IP mappings resolved through GNS 527 * DNS->IP mappings resolved through GNS
528 */ 528 */
@@ -1032,7 +1032,7 @@ curl_check_hdr (void *buffer, size_t size, size_t nmemb, void *cls)
1032 GNUNET_free (cors_hdr); 1032 GNUNET_free (cors_hdr);
1033 } 1033 }
1034 /* force connection to be closed after each request, as we 1034 /* force connection to be closed after each request, as we
1035 do not support HTTP pipelining */ 1035 do not support HTTP pipelining (yet, FIXME!) */
1036 GNUNET_break (MHD_YES == 1036 GNUNET_break (MHD_YES ==
1037 MHD_add_response_header (s5r->response, 1037 MHD_add_response_header (s5r->response,
1038 MHD_HTTP_HEADER_CONNECTION, 1038 MHD_HTTP_HEADER_CONNECTION,
diff --git a/src/util/program.c b/src/util/program.c
index 865d9c690..08858af37 100644
--- a/src/util/program.c
+++ b/src/util/program.c
@@ -279,6 +279,22 @@ GNUNET_PROGRAM_run2 (int argc, char *const *argv, const char *binaryName,
279 clock_offset = skew_offset - skew_variance; 279 clock_offset = skew_offset - skew_variance;
280 GNUNET_TIME_set_offset (clock_offset); 280 GNUNET_TIME_set_offset (clock_offset);
281 } 281 }
282 /* ARM needs to know which configuration file to use when starting
283 services. If we got a command-line option *and* if nothing is
284 specified in the configuration, remember the command-line option
285 in "cfg". This is typically really only having an effect if we
286 are running code in src/arm/, as obviously the rest of the code
287 has little business with ARM-specific options. */
288 if (GNUNET_YES !=
289 GNUNET_CONFIGURATION_have_value (cfg,
290 "arm",
291 "CONFIG"))
292 {
293 GNUNET_CONFIGURATION_set_value_string (cfg,
294 "arm", "CONFIG",
295 cc.cfgfile);
296 }
297
282 /* run */ 298 /* run */
283 cc.args = &argv[ret]; 299 cc.args = &argv[ret];
284 if (GNUNET_NO == run_without_scheduler) 300 if (GNUNET_NO == run_without_scheduler)