WiP
[oweals/gnunet.git] / src / util / test_crypto_hash.c
index b650355c09ce67f2b99ab19d6615928fd8a9f242..85de9fbbbfee7016e58bd1bf4996d5e012b79428 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
@@ -122,9 +122,10 @@ finished_task (void *cls, const GNUNET_HashCode * res)
 static void
 file_hasher (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
 {
-  GNUNET_CRYPTO_hash_file (tc->sched,
-                           GNUNET_SCHEDULER_PRIORITY_DEFAULT,
-                           FILENAME, 1024, &finished_task, cls);
+  GNUNET_assert (NULL !=
+                GNUNET_CRYPTO_hash_file (GNUNET_SCHEDULER_PRIORITY_DEFAULT,
+                                         FILENAME, 1024,
+                                         &finished_task, cls));
 }