aboutsummaryrefslogtreecommitdiff
path: root/src/fs/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/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/fs_download.c')
-rw-r--r--src/fs/fs_download.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fs/fs_download.c b/src/fs/fs_download.c
index 0596d85e3..490beef5e 100644
--- a/src/fs/fs_download.c
+++ b/src/fs/fs_download.c
@@ -2068,7 +2068,7 @@ GNUNET_FS_download_start (struct GNUNET_FS_Handle *h,
2068 { 2068 {
2069 dc->filename = GNUNET_strdup (filename); 2069 dc->filename = GNUNET_strdup (filename);
2070 if (GNUNET_YES == GNUNET_DISK_file_test (filename)) 2070 if (GNUNET_YES == GNUNET_DISK_file_test (filename))
2071 GNUNET_break (GNUNET_OK == GNUNET_DISK_file_size (filename, &dc->old_file_size, GNUNET_YES)); 2071 GNUNET_break (GNUNET_OK == GNUNET_DISK_file_size (filename, &dc->old_file_size, GNUNET_YES, GNUNET_YES));
2072 } 2072 }
2073 if (GNUNET_FS_uri_test_loc (dc->uri)) 2073 if (GNUNET_FS_uri_test_loc (dc->uri))
2074 GNUNET_assert (GNUNET_OK == 2074 GNUNET_assert (GNUNET_OK ==
@@ -2178,7 +2178,7 @@ GNUNET_FS_download_start_from_search (struct GNUNET_FS_Handle *h,
2178 { 2178 {
2179 dc->filename = GNUNET_strdup (filename); 2179 dc->filename = GNUNET_strdup (filename);
2180 if (GNUNET_YES == GNUNET_DISK_file_test (filename)) 2180 if (GNUNET_YES == GNUNET_DISK_file_test (filename))
2181 GNUNET_break (GNUNET_OK == GNUNET_DISK_file_size (filename, &dc->old_file_size, GNUNET_YES)); 2181 GNUNET_break (GNUNET_OK == GNUNET_DISK_file_size (filename, &dc->old_file_size, GNUNET_YES, GNUNET_YES));
2182 } 2182 }
2183 if (GNUNET_FS_uri_test_loc (dc->uri)) 2183 if (GNUNET_FS_uri_test_loc (dc->uri))
2184 GNUNET_assert (GNUNET_OK == 2184 GNUNET_assert (GNUNET_OK ==