diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-08-15 21:54:06 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-08-15 21:54:06 +0000 |
commit | 5746309cb4be2073d550ad7a6885e918631dbc38 (patch) | |
tree | 89455bc4aadf977816b38df13f990372cd81d71a /src/core/core_api_iterate_peers.c | |
parent | 6fd3e715cae09fa6e657c96f1c6f9711ee51f42f (diff) | |
download | gnunet-5746309cb4be2073d550ad7a6885e918631dbc38.tar.gz gnunet-5746309cb4be2073d550ad7a6885e918631dbc38.zip |
indentation
Diffstat (limited to 'src/core/core_api_iterate_peers.c')
-rw-r--r-- | src/core/core_api_iterate_peers.c | 36 |
1 files changed, 15 insertions, 21 deletions
diff --git a/src/core/core_api_iterate_peers.c b/src/core/core_api_iterate_peers.c index 1bad9a768..0cc28e538 100644 --- a/src/core/core_api_iterate_peers.c +++ b/src/core/core_api_iterate_peers.c | |||
@@ -114,10 +114,9 @@ receive_info (void *cls, const struct GNUNET_MessageHeader *msg) | |||
114 | } | 114 | } |
115 | /* Normal case */ | 115 | /* Normal case */ |
116 | if (request_context->peer_cb != NULL) | 116 | if (request_context->peer_cb != NULL) |
117 | request_context->peer_cb (request_context->cb_cls, | 117 | request_context->peer_cb (request_context->cb_cls, &connect_message->peer, |
118 | &connect_message->peer, &connect_message->ats); | 118 | &connect_message->ats); |
119 | GNUNET_CLIENT_receive (request_context->client, | 119 | GNUNET_CLIENT_receive (request_context->client, &receive_info, |
120 | &receive_info, | ||
121 | request_context, GNUNET_TIME_UNIT_FOREVER_REL); | 120 | request_context, GNUNET_TIME_UNIT_FOREVER_REL); |
122 | } | 121 | } |
123 | 122 | ||
@@ -194,16 +193,13 @@ GNUNET_CORE_is_peer_connected (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
194 | request_context->cb_cls = cb_cls; | 193 | request_context->cb_cls = cb_cls; |
195 | request_context->peer = peer; | 194 | request_context->peer = peer; |
196 | 195 | ||
197 | request_context->th = GNUNET_CLIENT_notify_transmit_ready (client, | 196 | request_context->th = |
198 | sizeof (struct | 197 | GNUNET_CLIENT_notify_transmit_ready (client, |
199 | GNUNET_MessageHeader) | 198 | sizeof (struct GNUNET_MessageHeader) |
200 | + | 199 | + |
201 | sizeof (struct | 200 | sizeof (struct GNUNET_PeerIdentity), |
202 | GNUNET_PeerIdentity), | 201 | GNUNET_TIME_relative_get_forever (), |
203 | GNUNET_TIME_relative_get_forever | 202 | GNUNET_YES, &transmit_request, peer); |
204 | (), GNUNET_YES, | ||
205 | &transmit_request, | ||
206 | peer); | ||
207 | GNUNET_assert (request_context->th != NULL); | 203 | GNUNET_assert (request_context->th != NULL); |
208 | GNUNET_CLIENT_receive (client, &receive_info, request_context, | 204 | GNUNET_CLIENT_receive (client, &receive_info, request_context, |
209 | GNUNET_TIME_relative_get_forever ()); | 205 | GNUNET_TIME_relative_get_forever ()); |
@@ -238,13 +234,11 @@ GNUNET_CORE_iterate_peers (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
238 | request_context->peer_cb = peer_cb; | 234 | request_context->peer_cb = peer_cb; |
239 | request_context->cb_cls = cb_cls; | 235 | request_context->cb_cls = cb_cls; |
240 | 236 | ||
241 | request_context->th = GNUNET_CLIENT_notify_transmit_ready (client, | 237 | request_context->th = |
242 | sizeof (struct | 238 | GNUNET_CLIENT_notify_transmit_ready (client, |
243 | GNUNET_MessageHeader), | 239 | sizeof (struct GNUNET_MessageHeader), |
244 | GNUNET_TIME_relative_get_forever | 240 | GNUNET_TIME_relative_get_forever (), |
245 | (), GNUNET_YES, | 241 | GNUNET_YES, &transmit_request, NULL); |
246 | &transmit_request, | ||
247 | NULL); | ||
248 | 242 | ||
249 | GNUNET_CLIENT_receive (client, &receive_info, request_context, | 243 | GNUNET_CLIENT_receive (client, &receive_info, request_context, |
250 | GNUNET_TIME_relative_get_forever ()); | 244 | GNUNET_TIME_relative_get_forever ()); |