aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs_tree.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-04-09 23:14:03 +0000
committerChristian Grothoff <christian@grothoff.org>2016-04-09 23:14:03 +0000
commit29e6158507a0758192075ac6ece7ba8e75ddc49a (patch)
treeb91ded48da322f8ba4c9bb0f5504228aa036c2d1 /src/fs/fs_tree.c
parent5dfcb058ab5db9ae0c4b147d8a99c64ca0980028 (diff)
downloadgnunet-29e6158507a0758192075ac6ece7ba8e75ddc49a.tar.gz
gnunet-29e6158507a0758192075ac6ece7ba8e75ddc49a.zip
small API change: do no longer pass rarely needed GNUNET_SCHEDULER_TaskContext to all scheduler tasks; instead, allow the relatively few tasks that need it to obtain the context via GNUNET_SCHEDULER_get_task_context()
Diffstat (limited to 'src/fs/fs_tree.c')
-rw-r--r--src/fs/fs_tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fs/fs_tree.c b/src/fs/fs_tree.c
index 57c4c567f..b3c632203 100644
--- a/src/fs/fs_tree.c
+++ b/src/fs/fs_tree.c
@@ -352,7 +352,7 @@ GNUNET_FS_tree_encoder_next (struct GNUNET_FS_TreeEncoder *te)
352 te->uri->data.chk.chk = te->chk_tree[off]; 352 te->uri->data.chk.chk = te->chk_tree[off];
353 te->uri->data.chk.file_length = GNUNET_htonll (te->size); 353 te->uri->data.chk.file_length = GNUNET_htonll (te->size);
354 te->in_next = GNUNET_NO; 354 te->in_next = GNUNET_NO;
355 te->cont (te->cls, NULL); 355 te->cont (te->cls);
356 return; 356 return;
357 } 357 }
358 if (0 == te->current_depth) 358 if (0 == te->current_depth)
@@ -363,7 +363,7 @@ GNUNET_FS_tree_encoder_next (struct GNUNET_FS_TreeEncoder *te)
363 te->reader (te->cls, te->publish_offset, pt_size, iob, &te->emsg)) 363 te->reader (te->cls, te->publish_offset, pt_size, iob, &te->emsg))
364 { 364 {
365 te->in_next = GNUNET_NO; 365 te->in_next = GNUNET_NO;
366 te->cont (te->cls, NULL); 366 te->cont (te->cls);
367 return; 367 return;
368 } 368 }
369 pt_block = iob; 369 pt_block = iob;