aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs_search.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/fs_search.c')
-rw-r--r--src/fs/fs_search.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/src/fs/fs_search.c b/src/fs/fs_search.c
index 626d23a72..eaabac746 100644
--- a/src/fs/fs_search.c
+++ b/src/fs/fs_search.c
@@ -215,11 +215,9 @@ signal_probe_result (struct GNUNET_FS_SearchResult *sr)
215 * Handle the case where we have failed to receive a response for our probe. 215 * Handle the case where we have failed to receive a response for our probe.
216 * 216 *
217 * @param cls our `struct GNUNET_FS_SearchResult *` 217 * @param cls our `struct GNUNET_FS_SearchResult *`
218 * @param tc scheduler context
219 */ 218 */
220static void 219static void
221probe_failure_handler (void *cls, 220probe_failure_handler (void *cls)
222 const struct GNUNET_SCHEDULER_TaskContext *tc)
223{ 221{
224 struct GNUNET_FS_SearchResult *sr = cls; 222 struct GNUNET_FS_SearchResult *sr = cls;
225 223
@@ -241,11 +239,9 @@ probe_failure_handler (void *cls,
241 * Handle the case where we have gotten a response for our probe. 239 * Handle the case where we have gotten a response for our probe.
242 * 240 *
243 * @param cls our `struct GNUNET_FS_SearchResult *` 241 * @param cls our `struct GNUNET_FS_SearchResult *`
244 * @param tc scheduler context
245 */ 242 */
246static void 243static void
247probe_success_handler (void *cls, 244probe_success_handler (void *cls)
248 const struct GNUNET_SCHEDULER_TaskContext *tc)
249{ 245{
250 struct GNUNET_FS_SearchResult *sr = cls; 246 struct GNUNET_FS_SearchResult *sr = cls;
251 247
@@ -364,11 +360,9 @@ GNUNET_FS_search_probe_progress_ (void *cls,
364 * Task run periodically to remind clients that a probe is active. 360 * Task run periodically to remind clients that a probe is active.
365 * 361 *
366 * @param cls the `struct GNUNET_FS_SearchResult` that we are probing for 362 * @param cls the `struct GNUNET_FS_SearchResult` that we are probing for
367 * @param tc scheduler context
368 */ 363 */
369static void 364static void
370probe_ping_task_cb (void *cls, 365probe_ping_task_cb (void *cls)
371 const struct GNUNET_SCHEDULER_TaskContext *tc)
372{ 366{
373 struct GNUNET_FS_Handle *h = cls; 367 struct GNUNET_FS_Handle *h = cls;
374 struct GNUNET_FS_SearchResult *sr; 368 struct GNUNET_FS_SearchResult *sr;
@@ -1245,10 +1239,9 @@ schedule_transmit_search_request (struct GNUNET_FS_SearchContext *sc)
1245 * our queries NOW. 1239 * our queries NOW.
1246 * 1240 *
1247 * @param cls our search context 1241 * @param cls our search context
1248 * @param tc unused
1249 */ 1242 */
1250static void 1243static void
1251do_reconnect (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 1244do_reconnect (void *cls)
1252{ 1245{
1253 struct GNUNET_FS_SearchContext *sc = cls; 1246 struct GNUNET_FS_SearchContext *sc = cls;
1254 struct GNUNET_CLIENT_Connection *client; 1247 struct GNUNET_CLIENT_Connection *client;
@@ -1637,7 +1630,7 @@ GNUNET_FS_search_continue (struct GNUNET_FS_SearchContext *sc)
1637 1630
1638 GNUNET_assert (NULL == sc->client); 1631 GNUNET_assert (NULL == sc->client);
1639 GNUNET_assert (NULL == sc->task); 1632 GNUNET_assert (NULL == sc->task);
1640 do_reconnect (sc, NULL); 1633 do_reconnect (sc);
1641 GNUNET_FS_search_sync_ (sc); 1634 GNUNET_FS_search_sync_ (sc);
1642 pi.status = GNUNET_FS_STATUS_SEARCH_CONTINUED; 1635 pi.status = GNUNET_FS_STATUS_SEARCH_CONTINUED;
1643 sc->client_info = GNUNET_FS_search_make_status_ (&pi, sc->h, sc); 1636 sc->client_info = GNUNET_FS_search_make_status_ (&pi, sc->h, sc);