diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-07-18 12:20:03 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-07-18 12:20:03 +0000 |
commit | e4d62bbe6e87d0944e97bbb68866404a8fac1c4f (patch) | |
tree | 5e5ce1c01566c7c1d36b02796278cb7f3aa3cfc8 /src/fs | |
parent | 1dc774db69a2f0d889d857889550a4fad212b1f4 (diff) | |
download | gnunet-e4d62bbe6e87d0944e97bbb68866404a8fac1c4f.tar.gz gnunet-e4d62bbe6e87d0944e97bbb68866404a8fac1c4f.zip |
fix
Diffstat (limited to 'src/fs')
-rw-r--r-- | src/fs/fs_download.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fs/fs_download.c b/src/fs/fs_download.c index 1565f9a3d..e515b147d 100644 --- a/src/fs/fs_download.c +++ b/src/fs/fs_download.c | |||
@@ -1050,7 +1050,7 @@ process_result_with_request (void *cls, | |||
1050 | size_t bs; | 1050 | size_t bs; |
1051 | size_t app; | 1051 | size_t app; |
1052 | int i; | 1052 | int i; |
1053 | struct ContentHashKey *chk; | 1053 | struct ContentHashKey *chkarr; |
1054 | 1054 | ||
1055 | #if DEBUG_DOWNLOAD | 1055 | #if DEBUG_DOWNLOAD |
1056 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1056 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
@@ -1245,14 +1245,14 @@ process_result_with_request (void *cls, | |||
1245 | (unsigned long long) dr->offset); | 1245 | (unsigned long long) dr->offset); |
1246 | #endif | 1246 | #endif |
1247 | GNUNET_assert (0 == (prc->size % sizeof(struct ContentHashKey))); | 1247 | GNUNET_assert (0 == (prc->size % sizeof(struct ContentHashKey))); |
1248 | chk = (struct ContentHashKey*) pt; | 1248 | chkarr = (struct ContentHashKey*) pt; |
1249 | for (i=(prc->size / sizeof(struct ContentHashKey))-1;i>=0;i--) | 1249 | for (i=(prc->size / sizeof(struct ContentHashKey))-1;i>=0;i--) |
1250 | { | 1250 | { |
1251 | drc = dr->children[i]; | 1251 | drc = dr->children[i]; |
1252 | switch (drc->state) | 1252 | switch (drc->state) |
1253 | { | 1253 | { |
1254 | case BRS_INIT: | 1254 | case BRS_INIT: |
1255 | drc->chk = chk[i]; | 1255 | drc->chk = chkarr[i]; |
1256 | drc->state = BRS_CHK_SET; | 1256 | drc->state = BRS_CHK_SET; |
1257 | schedule_block_download (dc, drc); | 1257 | schedule_block_download (dc, drc); |
1258 | break; | 1258 | break; |