[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r34285 - gnunet/src/peerstore
From: |
gnunet |
Subject: |
[GNUnet-SVN] r34285 - gnunet/src/peerstore |
Date: |
Mon, 8 Sep 2014 23:59:09 +0200 |
Author: otarabai
Date: 2014-09-08 23:59:09 +0200 (Mon, 08 Sep 2014)
New Revision: 34285
Modified:
gnunet/src/peerstore/peerstore_api.c
Log:
peerstore: clearer variable name
Modified: gnunet/src/peerstore/peerstore_api.c
===================================================================
--- gnunet/src/peerstore/peerstore_api.c 2014-09-05 19:06:03 UTC (rev
34284)
+++ gnunet/src/peerstore/peerstore_api.c 2014-09-08 21:59:09 UTC (rev
34285)
@@ -161,9 +161,9 @@
/**
* #GNUNET_YES / #GNUNET_NO
- * if sent, cannot be canceled
+ * Iterate request has been sent and we are still expecting records
*/
- int request_sent;
+ int iterating;
/**
* Task identifier for the function called
@@ -361,7 +361,7 @@
ic = h->iterate_head;
while (NULL != ic)
{
- if (GNUNET_YES == ic->request_sent)
+ if (GNUNET_YES == ic->iterating)
{
icb = ic->callback;
icb_cls = ic->callback_cls;
@@ -650,7 +650,7 @@
msg_type = ntohs (msg->type);
if (GNUNET_MESSAGE_TYPE_PEERSTORE_ITERATE_END == msg_type)
{
- ic->request_sent = GNUNET_NO;
+ ic->iterating = GNUNET_NO;
GNUNET_PEERSTORE_iterate_cancel (ic);
if (NULL != callback)
callback (callback_cls, NULL, NULL);
@@ -685,7 +685,7 @@
struct GNUNET_PEERSTORE_IterateContext *ic = cls;
LOG (GNUNET_ERROR_TYPE_DEBUG, "Iterate request sent to service.\n");
- ic->request_sent = GNUNET_YES;
+ ic->iterating = GNUNET_YES;
ic->ev = NULL;
}
@@ -720,7 +720,7 @@
GNUNET_SCHEDULER_cancel (ic->timeout_task);
ic->timeout_task = GNUNET_SCHEDULER_NO_TASK;
}
- if (GNUNET_NO == ic->request_sent)
+ if (GNUNET_NO == ic->iterating)
{
if (NULL != ic->ev)
{
@@ -767,7 +767,7 @@
ic->callback_cls = callback_cls;
ic->ev = ev;
ic->h = h;
- ic->request_sent = GNUNET_NO;
+ ic->iterating = GNUNET_NO;
GNUNET_CONTAINER_DLL_insert_tail (h->iterate_head, h->iterate_tail, ic);
LOG (GNUNET_ERROR_TYPE_DEBUG,
"Sending an iterate request for sub system `%s'\n", sub_system);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r34285 - gnunet/src/peerstore,
gnunet <=