X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=contrib%2Ftest_gnunet_prefix.c;h=9d02720501084849d7b8ad44fc0935c5ca4e18e6;hb=d1ee58bf994791f6b0020029db0959ec831b927d;hp=ea81371070709d36165ec2048b2de1c751c20354;hpb=9c3523a5786f8e961edf791eb9c2c6cc2149a60c;p=oweals%2Fgnunet.git diff --git a/contrib/test_gnunet_prefix.c b/contrib/test_gnunet_prefix.c index ea8137107..9d0272050 100644 --- a/contrib/test_gnunet_prefix.c +++ b/contrib/test_gnunet_prefix.c @@ -4,7 +4,7 @@ GNUnet is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published - by the Free Software Foundation; either version 2, or (at your + by the Free Software Foundation; either version 3, or (at your option) any later version. GNUnet is distributed in the hope that it will be useful, but @@ -27,23 +27,23 @@ #include "platform.h" -int +int main (int argc, char **argv) { const char *basename; const char *dirname; - basename = getenv ("GNUNET_PREFIX"); + basename = getenv ("GNUNET_PREFIX"); if (NULL == basename) { fprintf (stderr, _("Environment variable GNUNET_PREFIX not set\n")); - fprintf (stderr, + fprintf (stderr, _("Testcases will not work!\n")); return 1; } - dirname = DIR_SEPARATOR_STR "share" DIR_SEPARATOR_STR "gnunet" DIR_SEPARATOR_STR "defaults.conf"; + dirname = DIR_SEPARATOR_STR "share" DIR_SEPARATOR_STR "gnunet" DIR_SEPARATOR_STR "config.d"; { char tmp[strlen (basename) + strlen (dirname) + 1]; sprintf (tmp, "%s%s", basename, dirname); @@ -56,7 +56,7 @@ main (int argc, fprintf (stderr, _("Check that you did run `make install' and that GNUNET_PREFIX='%s' is the correct prefix.\n"), basename); - fprintf (stderr, + fprintf (stderr, _("Testcases will not work!\n")); return 2; }