From: Christian Grothoff Date: Tue, 3 Jan 2012 13:34:45 +0000 (+0000) Subject: -fixing compile errors in tests X-Git-Tag: initial-import-from-subversion-38251~15447 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3368e64ea2c577cc5e6d4274d00cf6ec1641e063;p=oweals%2Fgnunet.git -fixing compile errors in tests --- diff --git a/src/arm/test_gnunet_service_manager.c b/src/arm/test_gnunet_service_manager.c index dd12bbd31..413a9e760 100644 --- a/src/arm/test_gnunet_service_manager.c +++ b/src/arm/test_gnunet_service_manager.c @@ -162,7 +162,7 @@ main (int argc, char *argv[]) GNUNET_log_strerror (GNUNET_ERROR_TYPE_ERROR | GNUNET_ERROR_TYPE_BULK, "gethostname"); FPRINTF (stderr, - "Failed to determine my own hostname, testcase not run.\n", NULL); + "%s", "Failed to determine my own hostname, testcase not run.\n"); return 0; } if (NULL == gethostbyname (hostname)) diff --git a/src/datacache/test_datacache.c b/src/datacache/test_datacache.c index ff3640b6f..4f106d9e0 100644 --- a/src/datacache/test_datacache.c +++ b/src/datacache/test_datacache.c @@ -72,7 +72,8 @@ run (void *cls, char *const *args, const char *cfgfile, if (h == NULL) { FPRINTF (stderr, - "Failed to initialize datacache. Database likely not setup, skipping test.\n", NULL); + "%s", + "Failed to initialize datacache. Database likely not setup, skipping test.\n"); return; } exp = GNUNET_TIME_absolute_get (); diff --git a/src/datastore/test_plugin_datastore.c b/src/datastore/test_plugin_datastore.c index ca894ff33..ea9e85d70 100644 --- a/src/datastore/test_plugin_datastore.c +++ b/src/datastore/test_plugin_datastore.c @@ -344,7 +344,7 @@ run (void *cls, char *const *args, const char *cfgfile, if (api == NULL) { FPRINTF (stderr, - "Could not initialize plugin, assuming database not configured. Test not run!\n", NULL); + "%s", "Could not initialize plugin, assuming database not configured. Test not run!\n"); return; } crc = GNUNET_malloc (sizeof (struct CpsRunContext)); diff --git a/src/fs/test_fs_file_information.c b/src/fs/test_fs_file_information.c index 34ac3285e..0a2969cd3 100644 --- a/src/fs/test_fs_file_information.c +++ b/src/fs/test_fs_file_information.c @@ -152,7 +152,8 @@ testThumbnail () if (ex == NULL) { FPRINTF (stderr, - "Test incomplete, have no GTK thumbnail extractor available.\n", NULL); + "%s", + "Test incomplete, have no GTK thumbnail extractor available.\n"); return 0; /* can not test, no thumbnailer */ } ex = EXTRACTOR_plugin_add_config (ex, "mime", diff --git a/src/util/test_resolver_api.c b/src/util/test_resolver_api.c index 75140f8d5..c96030698 100644 --- a/src/util/test_resolver_api.c +++ b/src/util/test_resolver_api.c @@ -265,7 +265,7 @@ run (void *cls, char *const *args, const char *cfgfile, hstrerror (h_errno)); #endif FPRINTF (stderr, - "System seems to be off-line, will not run all DNS tests\n", NULL); + "%s", "System seems to be off-line, will not run all DNS tests\n"); *ok = 0; /* mark test as passing anyway */ return; }