fix
[oweals/gnunet.git] / src / util / test_crypto_hash.c
index f793e3342319aa7eedc071d2dd9ed01fbe31d174..a32a28ef031ee42adb6abf87266ed6696eb0de3f 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
@@ -55,6 +55,7 @@ static int
 testEncoding ()
 {
   int i;
+
   for (i = 0; i < 255; i++)
     if (0 != test (i))
       return 1;
@@ -123,10 +124,9 @@ static void
 file_hasher (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
 {
   GNUNET_assert (NULL !=
-                GNUNET_CRYPTO_hash_file (tc->sched,
-                                         GNUNET_SCHEDULER_PRIORITY_DEFAULT,
-                                         FILENAME, 1024,
-                                         &finished_task, cls));
+                GNUNET_CRYPTO_hash_file (GNUNET_SCHEDULER_PRIORITY_DEFAULT,
+                                         FILENAME, 1024, &finished_task,
+                                         cls));
 }