aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs_download.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-09-14 16:14:42 +0000
committerChristian Grothoff <christian@grothoff.org>2013-09-14 16:14:42 +0000
commit946de21c805f2684d27ea7a4d7b6ae5a6337f925 (patch)
tree240d1551cadca44fe1e3fd760d25121f223cab31 /src/fs/fs_download.c
parent672f23ab910aa13a5a0f5e7f96f9786404ac447a (diff)
downloadgnunet-946de21c805f2684d27ea7a4d7b6ae5a6337f925.tar.gz
gnunet-946de21c805f2684d27ea7a4d7b6ae5a6337f925.zip
-fix #3033
Diffstat (limited to 'src/fs/fs_download.c')
-rw-r--r--src/fs/fs_download.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fs/fs_download.c b/src/fs/fs_download.c
index a86df253a..1175fcd05 100644
--- a/src/fs/fs_download.c
+++ b/src/fs/fs_download.c
@@ -541,7 +541,7 @@ try_match_block (struct GNUNET_FS_DownloadContext *dc,
541 GNUNET_FS_download_make_status_ (&pi, dc); 541 GNUNET_FS_download_make_status_ (&pi, dc);
542 if ((NULL != dc->filename) && 542 if ((NULL != dc->filename) &&
543 (0 != 543 (0 !=
544 truncate (dc->filename, 544 TRUNCATE (dc->filename,
545 GNUNET_ntohll (dc->uri->data.chk.file_length)))) 545 GNUNET_ntohll (dc->uri->data.chk.file_length))))
546 GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "truncate", 546 GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "truncate",
547 dc->filename); 547 dc->filename);
@@ -1103,7 +1103,7 @@ process_result_with_request (void *cls, const struct GNUNET_HashCode * key,
1103 if (NULL != dc->filename) 1103 if (NULL != dc->filename)
1104 { 1104 {
1105 if (0 != 1105 if (0 !=
1106 truncate (dc->filename, 1106 TRUNCATE (dc->filename,
1107 GNUNET_ntohll (dc->uri->data.chk.file_length))) 1107 GNUNET_ntohll (dc->uri->data.chk.file_length)))
1108 GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "truncate", 1108 GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "truncate",
1109 dc->filename); 1109 dc->filename);
@@ -1767,7 +1767,7 @@ reconstruct_cb (void *cls, const struct ContentHashKey *chk, uint64_t offset,
1767 if (NULL != dc->filename) 1767 if (NULL != dc->filename)
1768 { 1768 {
1769 if (0 != 1769 if (0 !=
1770 truncate (dc->filename, 1770 TRUNCATE (dc->filename,
1771 GNUNET_ntohll (dc->uri->data.chk.file_length))) 1771 GNUNET_ntohll (dc->uri->data.chk.file_length)))
1772 GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "truncate", 1772 GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "truncate",
1773 dc->filename); 1773 dc->filename);