-fixing compile errors in tests
authorChristian Grothoff <christian@grothoff.org>
Tue, 3 Jan 2012 13:34:45 +0000 (13:34 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 3 Jan 2012 13:34:45 +0000 (13:34 +0000)
src/arm/test_gnunet_service_manager.c
src/datacache/test_datacache.c
src/datastore/test_plugin_datastore.c
src/fs/test_fs_file_information.c
src/util/test_resolver_api.c

index dd12bbd31fb3af00a6b79af9b62da1c3a3639211..413a9e760b48aa76b0f6b5f13d0c212a9d122a79 100644 (file)
@@ -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))
index ff3640b6fb9d3cf046b95e55a4e12627e3cb76d4..4f106d9e0217df6100a9a5dec681d4887598e3dd 100644 (file)
@@ -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 ();
index ca894ff33d178eb46a29e3f752a7fd75d11b63a8..ea9e85d70dc707d9e36f6827e1a8f2bd0a703e22 100644 (file)
@@ -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));
index 34ac3285e28181097b5dd6ba5062ca4062b68a79..0a2969cd3872db8f5394512f53b29a5be497c5a5 100644 (file)
@@ -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",
index 75140f8d5926c0ab70fed64ca0b9229eb02fc732..c960306981d115733bfe755d95aab0b2fd3e3554 100644 (file)
@@ -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;
   }