diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-06-08 13:04:58 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-06-08 13:04:58 +0000 |
commit | 532e72fd4284021eee28a8ff3f6e35a37d9a26e8 (patch) | |
tree | ecfe7644747de7b38c2b11528e9fa1b036f267ba /src/peerinfo/peerinfo_api.c | |
parent | 89bdc195517c6528e278a53b8c0b19a80950ff52 (diff) | |
download | gnunet-532e72fd4284021eee28a8ff3f6e35a37d9a26e8.tar.gz gnunet-532e72fd4284021eee28a8ff3f6e35a37d9a26e8.zip |
-fixfix
Diffstat (limited to 'src/peerinfo/peerinfo_api.c')
-rw-r--r-- | src/peerinfo/peerinfo_api.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/peerinfo/peerinfo_api.c b/src/peerinfo/peerinfo_api.c index 62e20b266..3e52e1911 100644 --- a/src/peerinfo/peerinfo_api.c +++ b/src/peerinfo/peerinfo_api.c | |||
@@ -131,9 +131,11 @@ struct GNUNET_PEERINFO_IteratorContext | |||
131 | int have_peer; | 131 | int have_peer; |
132 | 132 | ||
133 | /** | 133 | /** |
134 | * Are we now receiving? | 134 | * Set to GNUNET_YES if we are currently receiving replies from the |
135 | * service. | ||
135 | */ | 136 | */ |
136 | int in_receive; | 137 | int request_transmitted; |
138 | |||
137 | }; | 139 | }; |
138 | 140 | ||
139 | 141 | ||
@@ -183,10 +185,9 @@ struct GNUNET_PEERINFO_Handle | |||
183 | GNUNET_SCHEDULER_TaskIdentifier r_task; | 185 | GNUNET_SCHEDULER_TaskIdentifier r_task; |
184 | 186 | ||
185 | /** | 187 | /** |
186 | * Set to GNUNET_YES if we are currently receiving replies from the | 188 | * Are we now receiving? |
187 | * service. | ||
188 | */ | 189 | */ |
189 | int request_transmitted; | 190 | int in_receive; |
190 | 191 | ||
191 | }; | 192 | }; |
192 | 193 | ||
@@ -600,7 +601,6 @@ peerinfo_handler (void *cls, const struct GNUNET_MessageHeader *msg) | |||
600 | "Received %u bytes of `%s' information about peer `%s' from `%s' service\n", | 601 | "Received %u bytes of `%s' information about peer `%s' from `%s' service\n", |
601 | (hello == NULL) ? 0 : (unsigned int) GNUNET_HELLO_size (hello), "HELLO", | 602 | (hello == NULL) ? 0 : (unsigned int) GNUNET_HELLO_size (hello), "HELLO", |
602 | GNUNET_i2s (&im->peer), "PEERINFO"); | 603 | GNUNET_i2s (&im->peer), "PEERINFO"); |
603 | ic->request_transmitted = GNUNET_YES; | ||
604 | h->in_receive = GNUNET_YES; | 604 | h->in_receive = GNUNET_YES; |
605 | GNUNET_CLIENT_receive (h->client, &peerinfo_handler, h, | 605 | GNUNET_CLIENT_receive (h->client, &peerinfo_handler, h, |
606 | GNUNET_TIME_absolute_get_remaining (ic->timeout)); | 606 | GNUNET_TIME_absolute_get_remaining (ic->timeout)); |