aboutsummaryrefslogtreecommitdiff
path: root/src/fs/test_fs_download.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-03-19 10:48:51 +0000
committerChristian Grothoff <christian@grothoff.org>2012-03-19 10:48:51 +0000
commitb3e1d0806fb274c62a5acf19c56369b71f992312 (patch)
tree657a7cd7a327aad0e7598b3d28cecc0d5cd95cd4 /src/fs/test_fs_download.c
parent0385dc1043912d3ddc5d57f6b7346054a30f64ef (diff)
downloadgnunet-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/test_fs_download.c')
-rw-r--r--src/fs/test_fs_download.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fs/test_fs_download.c b/src/fs/test_fs_download.c
index 570eab909..198a8154e 100644
--- a/src/fs/test_fs_download.c
+++ b/src/fs/test_fs_download.c
@@ -118,7 +118,7 @@ abort_download_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
118 GNUNET_FS_download_stop (download, GNUNET_YES); 118 GNUNET_FS_download_stop (download, GNUNET_YES);
119 download = NULL; 119 download = NULL;
120 } 120 }
121 GNUNET_assert (GNUNET_OK == GNUNET_DISK_file_size (fn, &size, GNUNET_YES)); 121 GNUNET_assert (GNUNET_OK == GNUNET_DISK_file_size (fn, &size, GNUNET_YES, GNUNET_NO));
122 GNUNET_assert (size == FILESIZE); 122 GNUNET_assert (size == FILESIZE);
123 GNUNET_DISK_directory_remove (fn); 123 GNUNET_DISK_directory_remove (fn);
124 GNUNET_free (fn); 124 GNUNET_free (fn);