diff options
author | Omar Tarabai <tarabai@devegypt.com> | 2014-09-08 21:59:09 +0000 |
---|---|---|
committer | Omar Tarabai <tarabai@devegypt.com> | 2014-09-08 21:59:09 +0000 |
commit | f1ade1bacd752189544c8ad2a5e3481fbff45ed3 (patch) | |
tree | e24884a57b52e32d004e8a478674d89119426217 | |
parent | a6d30e28abbbcd4cc5eb96fa55f7521284e76eda (diff) | |
download | gnunet-f1ade1bacd752189544c8ad2a5e3481fbff45ed3.tar.gz gnunet-f1ade1bacd752189544c8ad2a5e3481fbff45ed3.zip |
peerstore: clearer variable name
-rw-r--r-- | src/peerstore/peerstore_api.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/peerstore/peerstore_api.c b/src/peerstore/peerstore_api.c index bebf9678e..05e2f552c 100644 --- a/src/peerstore/peerstore_api.c +++ b/src/peerstore/peerstore_api.c | |||
@@ -161,9 +161,9 @@ struct GNUNET_PEERSTORE_IterateContext | |||
161 | 161 | ||
162 | /** | 162 | /** |
163 | * #GNUNET_YES / #GNUNET_NO | 163 | * #GNUNET_YES / #GNUNET_NO |
164 | * if sent, cannot be canceled | 164 | * Iterate request has been sent and we are still expecting records |
165 | */ | 165 | */ |
166 | int request_sent; | 166 | int iterating; |
167 | 167 | ||
168 | /** | 168 | /** |
169 | * Task identifier for the function called | 169 | * Task identifier for the function called |
@@ -361,7 +361,7 @@ reconnect (struct GNUNET_PEERSTORE_Handle *h) | |||
361 | ic = h->iterate_head; | 361 | ic = h->iterate_head; |
362 | while (NULL != ic) | 362 | while (NULL != ic) |
363 | { | 363 | { |
364 | if (GNUNET_YES == ic->request_sent) | 364 | if (GNUNET_YES == ic->iterating) |
365 | { | 365 | { |
366 | icb = ic->callback; | 366 | icb = ic->callback; |
367 | icb_cls = ic->callback_cls; | 367 | icb_cls = ic->callback_cls; |
@@ -650,7 +650,7 @@ handle_iterate_result (void *cls, const struct GNUNET_MessageHeader *msg) | |||
650 | msg_type = ntohs (msg->type); | 650 | msg_type = ntohs (msg->type); |
651 | if (GNUNET_MESSAGE_TYPE_PEERSTORE_ITERATE_END == msg_type) | 651 | if (GNUNET_MESSAGE_TYPE_PEERSTORE_ITERATE_END == msg_type) |
652 | { | 652 | { |
653 | ic->request_sent = GNUNET_NO; | 653 | ic->iterating = GNUNET_NO; |
654 | GNUNET_PEERSTORE_iterate_cancel (ic); | 654 | GNUNET_PEERSTORE_iterate_cancel (ic); |
655 | if (NULL != callback) | 655 | if (NULL != callback) |
656 | callback (callback_cls, NULL, NULL); | 656 | callback (callback_cls, NULL, NULL); |
@@ -685,7 +685,7 @@ iterate_request_sent (void *cls) | |||
685 | struct GNUNET_PEERSTORE_IterateContext *ic = cls; | 685 | struct GNUNET_PEERSTORE_IterateContext *ic = cls; |
686 | 686 | ||
687 | LOG (GNUNET_ERROR_TYPE_DEBUG, "Iterate request sent to service.\n"); | 687 | LOG (GNUNET_ERROR_TYPE_DEBUG, "Iterate request sent to service.\n"); |
688 | ic->request_sent = GNUNET_YES; | 688 | ic->iterating = GNUNET_YES; |
689 | ic->ev = NULL; | 689 | ic->ev = NULL; |
690 | } | 690 | } |
691 | 691 | ||
@@ -720,7 +720,7 @@ GNUNET_PEERSTORE_iterate_cancel (struct GNUNET_PEERSTORE_IterateContext *ic) | |||
720 | GNUNET_SCHEDULER_cancel (ic->timeout_task); | 720 | GNUNET_SCHEDULER_cancel (ic->timeout_task); |
721 | ic->timeout_task = GNUNET_SCHEDULER_NO_TASK; | 721 | ic->timeout_task = GNUNET_SCHEDULER_NO_TASK; |
722 | } | 722 | } |
723 | if (GNUNET_NO == ic->request_sent) | 723 | if (GNUNET_NO == ic->iterating) |
724 | { | 724 | { |
725 | if (NULL != ic->ev) | 725 | if (NULL != ic->ev) |
726 | { | 726 | { |
@@ -767,7 +767,7 @@ GNUNET_PEERSTORE_iterate (struct GNUNET_PEERSTORE_Handle *h, | |||
767 | ic->callback_cls = callback_cls; | 767 | ic->callback_cls = callback_cls; |
768 | ic->ev = ev; | 768 | ic->ev = ev; |
769 | ic->h = h; | 769 | ic->h = h; |
770 | ic->request_sent = GNUNET_NO; | 770 | ic->iterating = GNUNET_NO; |
771 | GNUNET_CONTAINER_DLL_insert_tail (h->iterate_head, h->iterate_tail, ic); | 771 | GNUNET_CONTAINER_DLL_insert_tail (h->iterate_head, h->iterate_tail, ic); |
772 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 772 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
773 | "Sending an iterate request for sub system `%s'\n", sub_system); | 773 | "Sending an iterate request for sub system `%s'\n", sub_system); |