fixes for reconnecting and message handling
[oweals/gnunet.git] / contrib / test_gnunet_prefix.c
index ea81371070709d36165ec2048b2de1c751c20354..9d02720501084849d7b8ad44fc0935c5ca4e18e6 100644 (file)
@@ -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
 
       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
       option) any later version.
 
       GNUnet is distributed in the hope that it will be useful, but
 #include "platform.h"
 
 
 #include "platform.h"
 
 
-int 
+int
 main (int argc,
       char **argv)
 {
   const char *basename;
   const char *dirname;
 
 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"));
   if (NULL == basename)
   {
     fprintf (stderr,
             _("Environment variable GNUNET_PREFIX not set\n"));
-    fprintf (stderr, 
+    fprintf (stderr,
             _("Testcases will not work!\n"));
     return 1;
   }
             _("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);
   {
     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,
               _("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;
     }
               _("Testcases will not work!\n"));
       return 2;
     }