bugfix
[oweals/gnunet.git] / src / util / crypto_hash.c
index 5a7cb33d71ad2f8e3e54ace8ec8dce2a081ddad5..8df4cc8f47837359222e02bd2dcdf27633870adf 100644 (file)
@@ -429,7 +429,7 @@ struct FileHashContext
   /**
    * File descriptor.
    */
-  struct GNUNET_IO_Handle *fh;
+  struct GNUNET_DISK_FileHandle *fh;
 
 };
 
@@ -443,8 +443,8 @@ file_hash_finish (struct FileHashContext *fhc, const GNUNET_HashCode * res)
 {
   fhc->callback (fhc->callback_cls, res);
   GNUNET_free (fhc->filename);
-  if (!GNUNET_IO_handle_invalid (fhc->fh))
-    GNUNET_break (0 == GNUNET_DISK_file_close (&fhc->fh));
+  if (!GNUNET_DISK_handle_invalid (fhc->fh))
+    GNUNET_break (GNUNET_OK == GNUNET_DISK_file_close (fhc->fh));
   GNUNET_free (fhc);            /* also frees fhc->buffer */
 }