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/transport/transport_api_blacklist.c | |
parent | 6fd3e715cae09fa6e657c96f1c6f9711ee51f42f (diff) | |
download | gnunet-5746309cb4be2073d550ad7a6885e918631dbc38.tar.gz gnunet-5746309cb4be2073d550ad7a6885e918631dbc38.zip |
indentation
Diffstat (limited to 'src/transport/transport_api_blacklist.c')
-rw-r--r-- | src/transport/transport_api_blacklist.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/src/transport/transport_api_blacklist.c b/src/transport/transport_api_blacklist.c index f8f430995..f6852ff01 100644 --- a/src/transport/transport_api_blacklist.c +++ b/src/transport/transport_api_blacklist.c | |||
@@ -122,8 +122,8 @@ query_handler (void *cls, const struct GNUNET_MessageHeader *msg) | |||
122 | static void | 122 | static void |
123 | receive (struct GNUNET_TRANSPORT_Blacklist *br) | 123 | receive (struct GNUNET_TRANSPORT_Blacklist *br) |
124 | { | 124 | { |
125 | GNUNET_CLIENT_receive (br->client, | 125 | GNUNET_CLIENT_receive (br->client, &query_handler, br, |
126 | &query_handler, br, GNUNET_TIME_UNIT_FOREVER_REL); | 126 | GNUNET_TIME_UNIT_FOREVER_REL); |
127 | } | 127 | } |
128 | 128 | ||
129 | 129 | ||
@@ -166,12 +166,12 @@ reconnect (struct GNUNET_TRANSPORT_Blacklist *br) | |||
166 | GNUNET_CLIENT_disconnect (br->client, GNUNET_NO); | 166 | GNUNET_CLIENT_disconnect (br->client, GNUNET_NO); |
167 | br->client = GNUNET_CLIENT_connect ("transport", br->cfg); | 167 | br->client = GNUNET_CLIENT_connect ("transport", br->cfg); |
168 | GNUNET_assert (br->client != NULL); | 168 | GNUNET_assert (br->client != NULL); |
169 | br->th = GNUNET_CLIENT_notify_transmit_ready (br->client, | 169 | br->th = |
170 | sizeof (struct | 170 | GNUNET_CLIENT_notify_transmit_ready (br->client, |
171 | GNUNET_MessageHeader), | 171 | sizeof (struct GNUNET_MessageHeader), |
172 | GNUNET_TIME_UNIT_FOREVER_REL, | 172 | GNUNET_TIME_UNIT_FOREVER_REL, |
173 | GNUNET_YES, | 173 | GNUNET_YES, &transmit_blacklist_init, |
174 | &transmit_blacklist_init, br); | 174 | br); |
175 | } | 175 | } |
176 | 176 | ||
177 | 177 | ||
@@ -212,12 +212,12 @@ transmit_blacklist_reply (void *cls, size_t size, void *buf) | |||
212 | static void | 212 | static void |
213 | reply (struct GNUNET_TRANSPORT_Blacklist *br) | 213 | reply (struct GNUNET_TRANSPORT_Blacklist *br) |
214 | { | 214 | { |
215 | br->th = GNUNET_CLIENT_notify_transmit_ready (br->client, | 215 | br->th = |
216 | sizeof (struct | 216 | GNUNET_CLIENT_notify_transmit_ready (br->client, |
217 | BlacklistMessage), | 217 | sizeof (struct BlacklistMessage), |
218 | GNUNET_TIME_UNIT_FOREVER_REL, | 218 | GNUNET_TIME_UNIT_FOREVER_REL, |
219 | GNUNET_NO, | 219 | GNUNET_NO, &transmit_blacklist_reply, |
220 | &transmit_blacklist_reply, br); | 220 | br); |
221 | if (br->th == NULL) | 221 | if (br->th == NULL) |
222 | { | 222 | { |
223 | reconnect (br); | 223 | reconnect (br); |
@@ -253,12 +253,12 @@ GNUNET_TRANSPORT_blacklist (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
253 | ret = GNUNET_malloc (sizeof (struct GNUNET_TRANSPORT_Blacklist)); | 253 | ret = GNUNET_malloc (sizeof (struct GNUNET_TRANSPORT_Blacklist)); |
254 | ret->client = client; | 254 | ret->client = client; |
255 | ret->cfg = cfg; | 255 | ret->cfg = cfg; |
256 | ret->th = GNUNET_CLIENT_notify_transmit_ready (client, | 256 | ret->th = |
257 | sizeof (struct | 257 | GNUNET_CLIENT_notify_transmit_ready (client, |
258 | GNUNET_MessageHeader), | 258 | sizeof (struct GNUNET_MessageHeader), |
259 | GNUNET_TIME_UNIT_FOREVER_REL, | 259 | GNUNET_TIME_UNIT_FOREVER_REL, |
260 | GNUNET_YES, | 260 | GNUNET_YES, &transmit_blacklist_init, |
261 | &transmit_blacklist_init, ret); | 261 | ret); |
262 | return ret; | 262 | return ret; |
263 | } | 263 | } |
264 | 264 | ||