diff options
author | ng0 <ng0@n0.is> | 2019-09-06 22:46:29 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-09-06 22:46:29 +0000 |
commit | 6e599264ad13e8fc105493d74d7c11d46f8739ed (patch) | |
tree | 169bef1ecbade5a659831fb169f3ae6943af127f /src/datastore/test_plugin_datastore.c | |
parent | 4f13bc15113021ebf71d5d81e99bc29f8a07fc9c (diff) | |
download | gnunet-6e599264ad13e8fc105493d74d7c11d46f8739ed.tar.gz gnunet-6e599264ad13e8fc105493d74d7c11d46f8739ed.zip |
first step to remove plibc
Diffstat (limited to 'src/datastore/test_plugin_datastore.c')
-rw-r--r-- | src/datastore/test_plugin_datastore.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/datastore/test_plugin_datastore.c b/src/datastore/test_plugin_datastore.c index c37b8ddb9..2b7bf9ae4 100644 --- a/src/datastore/test_plugin_datastore.c +++ b/src/datastore/test_plugin_datastore.c | |||
@@ -108,7 +108,7 @@ put_continuation (void *cls, | |||
108 | 108 | ||
109 | if (GNUNET_OK != status) | 109 | if (GNUNET_OK != status) |
110 | { | 110 | { |
111 | FPRINTF (stderr, | 111 | fprintf (stderr, |
112 | "ERROR: `%s'\n", | 112 | "ERROR: `%s'\n", |
113 | msg); | 113 | msg); |
114 | } | 114 | } |
@@ -399,7 +399,7 @@ load_plugin (const struct GNUNET_CONFIGURATION_Handle *cfg) | |||
399 | GNUNET_asprintf (&libname, "libgnunet_plugin_datastore_%s", name); | 399 | GNUNET_asprintf (&libname, "libgnunet_plugin_datastore_%s", name); |
400 | if (NULL == (ret = GNUNET_PLUGIN_load (libname, &env))) | 400 | if (NULL == (ret = GNUNET_PLUGIN_load (libname, &env))) |
401 | { | 401 | { |
402 | FPRINTF (stderr, "Failed to load plugin `%s'!\n", name); | 402 | fprintf (stderr, "Failed to load plugin `%s'!\n", name); |
403 | GNUNET_free (libname); | 403 | GNUNET_free (libname); |
404 | GNUNET_free (name); | 404 | GNUNET_free (name); |
405 | ok = 77; /* mark test as skipped */ | 405 | ok = 77; /* mark test as skipped */ |
@@ -421,7 +421,7 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
421 | api = load_plugin (c); | 421 | api = load_plugin (c); |
422 | if (api == NULL) | 422 | if (api == NULL) |
423 | { | 423 | { |
424 | FPRINTF (stderr, | 424 | fprintf (stderr, |
425 | "%s", "Could not initialize plugin, assuming database not configured. Test not run!\n"); | 425 | "%s", "Could not initialize plugin, assuming database not configured. Test not run!\n"); |
426 | return; | 426 | return; |
427 | } | 427 | } |
@@ -461,7 +461,7 @@ main (int argc, char *argv[]) | |||
461 | GNUNET_PROGRAM_run ((sizeof (xargv) / sizeof (char *)) - 1, xargv, | 461 | GNUNET_PROGRAM_run ((sizeof (xargv) / sizeof (char *)) - 1, xargv, |
462 | "test-plugin-datastore", "nohelp", options, &run, NULL); | 462 | "test-plugin-datastore", "nohelp", options, &run, NULL); |
463 | if ( (0 != ok) && (77 != ok) ) | 463 | if ( (0 != ok) && (77 != ok) ) |
464 | FPRINTF (stderr, "Missed some testcases: %u\n", ok); | 464 | fprintf (stderr, "Missed some testcases: %u\n", ok); |
465 | GNUNET_DISK_directory_remove (dir_name); | 465 | GNUNET_DISK_directory_remove (dir_name); |
466 | return ok; | 466 | return ok; |
467 | } | 467 | } |