aboutsummaryrefslogtreecommitdiff
path: root/src/util/test_configuration.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/test_configuration.c')
-rw-r--r--src/util/test_configuration.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/util/test_configuration.c b/src/util/test_configuration.c
index 3780b3649..b1a446f86 100644
--- a/src/util/test_configuration.c
+++ b/src/util/test_configuration.c
@@ -240,14 +240,14 @@ checkDiffs (struct GNUNET_CONFIGURATION_Handle *cfgDefault, int option)
240 GNUNET_CONFIGURATION_iterate (cfg, diffsCallBack, &cbData); 240 GNUNET_CONFIGURATION_iterate (cfg, diffsCallBack, &cbData);
241 if (1 == (ret = cbData.status)) 241 if (1 == (ret = cbData.status))
242 { 242 {
243 fprintf (stderr, 243 FPRINTF (stderr, "%s",
244 "Incorrect Configuration Diffs: Diffs may contain data not actually edited\n"); 244 "Incorrect Configuration Diffs: Diffs may contain data not actually edited\n");
245 goto housekeeping; 245 goto housekeeping;
246 } 246 }
247 cbData.cfgDiffs = cfg; 247 cbData.cfgDiffs = cfg;
248 GNUNET_CONFIGURATION_iterate (cfgDiffs, diffsCallBack, &cbData); 248 GNUNET_CONFIGURATION_iterate (cfgDiffs, diffsCallBack, &cbData);
249 if ((ret = cbData.status) == 1) 249 if ((ret = cbData.status) == 1)
250 fprintf (stderr, 250 FPRINTF (stderr, "%s",
251 "Incorrect Configuration Diffs: Data may be missing in diffs\n"); 251 "Incorrect Configuration Diffs: Data may be missing in diffs\n");
252 252
253housekeeping: 253housekeeping:
@@ -277,7 +277,7 @@ testConfig ()
277 return 1; 277 return 1;
278 if (0 != strcmp ("b", c)) 278 if (0 != strcmp ("b", c))
279 { 279 {
280 fprintf (stderr, "Got `%s'\n", c); 280 FPRINTF (stderr, "Got `%s'\n", c);
281 GNUNET_free (c); 281 GNUNET_free (c);
282 return 2; 282 return 2;
283 } 283 }
@@ -470,7 +470,7 @@ main (int argc, char *argv[])
470 if (GNUNET_OK != 470 if (GNUNET_OK !=
471 GNUNET_CONFIGURATION_parse (cfg, "test_configuration_data.conf")) 471 GNUNET_CONFIGURATION_parse (cfg, "test_configuration_data.conf"))
472 { 472 {
473 fprintf (stderr, "Failed to parse configuration file\n"); 473 FPRINTF (stderr, "%s", "Failed to parse configuration file\n");
474 GNUNET_CONFIGURATION_destroy (cfg); 474 GNUNET_CONFIGURATION_destroy (cfg);
475 return 1; 475 return 1;
476 } 476 }
@@ -484,7 +484,7 @@ main (int argc, char *argv[])
484 484
485 if (GNUNET_OK != GNUNET_CONFIGURATION_write (cfg, "/tmp/gnunet-test.conf")) 485 if (GNUNET_OK != GNUNET_CONFIGURATION_write (cfg, "/tmp/gnunet-test.conf"))
486 { 486 {
487 fprintf (stderr, "Failed to write configuration file\n"); 487 FPRINTF (stderr, "%s", "Failed to write configuration file\n");
488 GNUNET_CONFIGURATION_destroy (cfg); 488 GNUNET_CONFIGURATION_destroy (cfg);
489 return 1; 489 return 1;
490 } 490 }
@@ -546,7 +546,7 @@ main (int argc, char *argv[])
546error: 546error:
547 if (failureCount != 0) 547 if (failureCount != 0)
548 { 548 {
549 fprintf (stderr, "Test failed: %u\n", failureCount); 549 FPRINTF (stderr, "Test failed: %u\n", failureCount);
550 return 1; 550 return 1;
551 } 551 }
552 return 0; 552 return 0;