aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs_download.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-11-24 12:15:04 +0000
committerChristian Grothoff <christian@grothoff.org>2011-11-24 12:15:04 +0000
commitce43938102711364faf74972884862dc13a0d985 (patch)
treee94177b33c9f3e0710a60fdabd3b8a33113b7ea0 /src/fs/fs_download.c
parenta1ad58dbf1437560a9a24a52e9d28d28dc697a93 (diff)
downloadgnunet-ce43938102711364faf74972884862dc13a0d985.tar.gz
gnunet-ce43938102711364faf74972884862dc13a0d985.zip
changing API in anticipation of future implementation of 1369
Diffstat (limited to 'src/fs/fs_download.c')
-rw-r--r--src/fs/fs_download.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fs/fs_download.c b/src/fs/fs_download.c
index e4e015e88..cc36cba1f 100644
--- a/src/fs/fs_download.c
+++ b/src/fs/fs_download.c
@@ -515,6 +515,7 @@ try_match_block (struct GNUNET_FS_DownloadContext *dc,
515 pi.value.download.specifics.progress.offset = 0; 515 pi.value.download.specifics.progress.offset = 0;
516 pi.value.download.specifics.progress.data_len = dlen; 516 pi.value.download.specifics.progress.data_len = dlen;
517 pi.value.download.specifics.progress.depth = 0; 517 pi.value.download.specifics.progress.depth = 0;
518 pi.value.download.specifics.progress.trust_offered = 0;
518 GNUNET_FS_download_make_status_ (&pi, dc); 519 GNUNET_FS_download_make_status_ (&pi, dc);
519 if ((NULL != dc->filename) && 520 if ((NULL != dc->filename) &&
520 (0 != 521 (0 !=
@@ -1070,6 +1071,7 @@ process_result_with_request (void *cls, const GNUNET_HashCode * key,
1070 pi.value.download.specifics.progress.offset = dr->offset; 1071 pi.value.download.specifics.progress.offset = dr->offset;
1071 pi.value.download.specifics.progress.data_len = prc->size; 1072 pi.value.download.specifics.progress.data_len = prc->size;
1072 pi.value.download.specifics.progress.depth = dr->depth; 1073 pi.value.download.specifics.progress.depth = dr->depth;
1074 pi.value.download.specifics.progress.trust_offered = 0;
1073 GNUNET_FS_download_make_status_ (&pi, dc); 1075 GNUNET_FS_download_make_status_ (&pi, dc);
1074 GNUNET_assert (dc->completed <= dc->length); 1076 GNUNET_assert (dc->completed <= dc->length);
1075 if (dr->depth == 0) 1077 if (dr->depth == 0)
@@ -1673,6 +1675,7 @@ reconstruct_cb (void *cls, const struct ContentHashKey *chk, uint64_t offset,
1673 pi.value.download.specifics.progress.offset = offset; 1675 pi.value.download.specifics.progress.offset = offset;
1674 pi.value.download.specifics.progress.data_len = 0; 1676 pi.value.download.specifics.progress.data_len = 0;
1675 pi.value.download.specifics.progress.depth = 0; 1677 pi.value.download.specifics.progress.depth = 0;
1678 pi.value.download.specifics.progress.trust_offered = 0;
1676 GNUNET_FS_download_make_status_ (&pi, dc); 1679 GNUNET_FS_download_make_status_ (&pi, dc);
1677 } 1680 }
1678 else 1681 else