fixing 1584
[oweals/gnunet.git] / src / fs / test_fs_test_lib.c
index aad4557f94d5ab43d802865f9c8b11e7b3716fa8..a38b39b6ea07740b8d0c730ac3ecdb23aab155ab 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
-     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
@@ -73,7 +73,7 @@ static void
 do_download (void *cls,
             const struct GNUNET_FS_Uri *uri)
 {
-  if ((NULL == uri)
+  if (NULL == uri)
     {
       GNUNET_break (0);
       GNUNET_SCHEDULER_add_now (sched,
@@ -105,6 +105,7 @@ do_publish (void *cls,
       GNUNET_SCHEDULER_add_now (sched,
                                &do_stop,
                                NULL);
+      return;
     }
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
              "Publishing %llu bytes\n",
@@ -151,6 +152,7 @@ run (void *cls,
 {
   sched = s;
   GNUNET_FS_TEST_daemons_start (sched,
+                               "fs_test_lib_data.conf",
                                TIMEOUT,
                                NUM_DAEMONS,
                                daemons,