diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-03-19 10:48:51 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-03-19 10:48:51 +0000 |
commit | b3e1d0806fb274c62a5acf19c56369b71f992312 (patch) | |
tree | 657a7cd7a327aad0e7598b3d28cecc0d5cd95cd4 /src/fs/fs_unindex.c | |
parent | 0385dc1043912d3ddc5d57f6b7346054a30f64ef (diff) | |
download | gnunet-b3e1d0806fb274c62a5acf19c56369b71f992312.tar.gz gnunet-b3e1d0806fb274c62a5acf19c56369b71f992312.zip |
-LRN: calculate file size for single files when needed and use GNUNET_DISK_file_size instead of STAT
Diffstat (limited to 'src/fs/fs_unindex.c')
-rw-r--r-- | src/fs/fs_unindex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fs/fs_unindex.c b/src/fs/fs_unindex.c index 3c2ef8f6f..bf619b75a 100644 --- a/src/fs/fs_unindex.c +++ b/src/fs/fs_unindex.c | |||
@@ -755,7 +755,7 @@ GNUNET_FS_unindex_start (struct GNUNET_FS_Handle *h, const char *filename, | |||
755 | struct GNUNET_FS_ProgressInfo pi; | 755 | struct GNUNET_FS_ProgressInfo pi; |
756 | uint64_t size; | 756 | uint64_t size; |
757 | 757 | ||
758 | if (GNUNET_OK != GNUNET_DISK_file_size (filename, &size, GNUNET_YES)) | 758 | if (GNUNET_OK != GNUNET_DISK_file_size (filename, &size, GNUNET_YES, GNUNET_YES)) |
759 | return NULL; | 759 | return NULL; |
760 | ret = GNUNET_malloc (sizeof (struct GNUNET_FS_UnindexContext)); | 760 | ret = GNUNET_malloc (sizeof (struct GNUNET_FS_UnindexContext)); |
761 | ret->h = h; | 761 | ret->h = h; |