aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-service-fs_lc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-service-fs_lc.c')
-rw-r--r--src/fs/gnunet-service-fs_lc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/fs/gnunet-service-fs_lc.c b/src/fs/gnunet-service-fs_lc.c
index c3b6f40b0..f90131815 100644
--- a/src/fs/gnunet-service-fs_lc.c
+++ b/src/fs/gnunet-service-fs_lc.c
@@ -335,9 +335,9 @@ GSF_local_client_start_search_handler_ (struct GNUNET_SERVER_Client *client,
335 GNUNET_h2s (&sm->query), (unsigned int) type); 335 GNUNET_h2s (&sm->query), (unsigned int) type);
336 lc = GSF_local_client_lookup_ (client); 336 lc = GSF_local_client_lookup_ (client);
337 cr = NULL; 337 cr = NULL;
338 /* detect duplicate KBLOCK requests */ 338 /* detect duplicate UBLOCK requests */
339 if ((type == GNUNET_BLOCK_TYPE_FS_KBLOCK) || 339 if ((type == GNUNET_BLOCK_TYPE_FS_UBLOCK) ||
340 (type == GNUNET_BLOCK_TYPE_FS_NBLOCK) || (type == GNUNET_BLOCK_TYPE_ANY)) 340 (type == GNUNET_BLOCK_TYPE_ANY))
341 { 341 {
342 cr = lc->cr_head; 342 cr = lc->cr_head;
343 while (cr != NULL) 343 while (cr != NULL)
@@ -353,7 +353,7 @@ GSF_local_client_start_search_handler_ (struct GNUNET_SERVER_Client *client,
353 cr = cr->next; 353 cr = cr->next;
354 } 354 }
355 } 355 }
356 if (cr != NULL) 356 if (NULL != cr)
357 { 357 {
358 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 358 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
359 "Have existing request, merging content-seen lists.\n"); 359 "Have existing request, merging content-seen lists.\n");
@@ -374,8 +374,8 @@ GSF_local_client_start_search_handler_ (struct GNUNET_SERVER_Client *client,
374 options = GSF_PRO_LOCAL_REQUEST; 374 options = GSF_PRO_LOCAL_REQUEST;
375 if (0 != (SEARCH_MESSAGE_OPTION_LOOPBACK_ONLY & ntohl (sm->options))) 375 if (0 != (SEARCH_MESSAGE_OPTION_LOOPBACK_ONLY & ntohl (sm->options)))
376 options |= GSF_PRO_LOCAL_ONLY; 376 options |= GSF_PRO_LOCAL_ONLY;
377 cr->pr = GSF_pending_request_create_ (options, type, &sm->query, (type == GNUNET_BLOCK_TYPE_FS_SBLOCK) ? &sm->target /* namespace */ 377 cr->pr = GSF_pending_request_create_ (options, type,
378 : NULL, 378 &sm->query,
379 (0 != 379 (0 !=
380 memcmp (&sm->target, &all_zeros, 380 memcmp (&sm->target, &all_zeros,
381 sizeof (struct GNUNET_HashCode))) 381 sizeof (struct GNUNET_HashCode)))