aboutsummaryrefslogtreecommitdiff
path: root/src/util/crypto_hash.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-07-07 20:05:38 +0000
committerChristian Grothoff <christian@grothoff.org>2009-07-07 20:05:38 +0000
commitffb59a6a7fca6e70abfe5b87a997ed9cad989ec5 (patch)
tree58792ca0ea4ca6c461d0ffea8634b7dcf9f3fc90 /src/util/crypto_hash.c
parent8f0b281a4ec9c9419fb10892b6ffbd12d4bea1a0 (diff)
downloadgnunet-ffb59a6a7fca6e70abfe5b87a997ed9cad989ec5.tar.gz
gnunet-ffb59a6a7fca6e70abfe5b87a997ed9cad989ec5.zip
cleaning up disk api
Diffstat (limited to 'src/util/crypto_hash.c')
-rw-r--r--src/util/crypto_hash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/crypto_hash.c b/src/util/crypto_hash.c
index 0d8cdeb5c..8df4cc8f4 100644
--- a/src/util/crypto_hash.c
+++ b/src/util/crypto_hash.c
@@ -429,7 +429,7 @@ struct FileHashContext
429 /** 429 /**
430 * File descriptor. 430 * File descriptor.
431 */ 431 */
432 struct GNUNET_IO_Handle *fh; 432 struct GNUNET_DISK_FileHandle *fh;
433 433
434}; 434};
435 435
@@ -444,7 +444,7 @@ file_hash_finish (struct FileHashContext *fhc, const GNUNET_HashCode * res)
444 fhc->callback (fhc->callback_cls, res); 444 fhc->callback (fhc->callback_cls, res);
445 GNUNET_free (fhc->filename); 445 GNUNET_free (fhc->filename);
446 if (!GNUNET_DISK_handle_invalid (fhc->fh)) 446 if (!GNUNET_DISK_handle_invalid (fhc->fh))
447 GNUNET_break (GNUNET_OK == GNUNET_DISK_file_close (&fhc->fh)); 447 GNUNET_break (GNUNET_OK == GNUNET_DISK_file_close (fhc->fh));
448 GNUNET_free (fhc); /* also frees fhc->buffer */ 448 GNUNET_free (fhc); /* also frees fhc->buffer */
449} 449}
450 450