LRN: Fix automake deps to allow -j* builds again
[oweals/gnunet.git] / src / util / crypto_hash.c
index 9e5af4ab51da6715465cb563ede18925bbe0fdcb..670f5e73ab6e049eadb3637a884310a472ac3b95 100644 (file)
@@ -141,7 +141,7 @@ file_hash_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
   size_t delta;
 
   fhc->task = GNUNET_SCHEDULER_NO_TASK;
-  GNUNET_assert (fhc->offset < fhc->fsize);
+  GNUNET_assert (fhc->offset <= fhc->fsize);
   delta = fhc->bsize;
   if (fhc->fsize - fhc->offset < delta)
     delta = fhc->fsize - fhc->offset;
@@ -161,8 +161,7 @@ file_hash_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
       return;
     }
   fhc->task 
-    = GNUNET_SCHEDULER_add_after (GNUNET_SCHEDULER_NO_TASK,
-                                 &file_hash_task, fhc);
+    = GNUNET_SCHEDULER_add_now (&file_hash_task, fhc);
 }
 
 
@@ -252,7 +251,7 @@ getValue__ (unsigned char a)
  * Convert GNUNET_CRYPTO_hash to ASCII encoding.  The ASCII encoding is rather
  * GNUnet specific.  It was chosen such that it only uses characters
  * in [0-9A-V], can be produced without complex arithmetics and uses a
- * small number of characters.  The GNUnet encoding uses 102
+ * small number of characters.  The GNUnet encoding uses 103
  * characters plus a null terminator.
  *
  * @param block the hash code