aboutsummaryrefslogtreecommitdiff
path: root/src/transport/transport_api_address_lookup.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-08-15 21:54:06 +0000
committerChristian Grothoff <christian@grothoff.org>2011-08-15 21:54:06 +0000
commit5746309cb4be2073d550ad7a6885e918631dbc38 (patch)
tree89455bc4aadf977816b38df13f990372cd81d71a /src/transport/transport_api_address_lookup.c
parent6fd3e715cae09fa6e657c96f1c6f9711ee51f42f (diff)
downloadgnunet-5746309cb4be2073d550ad7a6885e918631dbc38.tar.gz
gnunet-5746309cb4be2073d550ad7a6885e918631dbc38.zip
indentation
Diffstat (limited to 'src/transport/transport_api_address_lookup.c')
-rw-r--r--src/transport/transport_api_address_lookup.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/transport/transport_api_address_lookup.c b/src/transport/transport_api_address_lookup.c
index 4aadf10f4..1cbafdab0 100644
--- a/src/transport/transport_api_address_lookup.c
+++ b/src/transport/transport_api_address_lookup.c
@@ -97,8 +97,7 @@ address_response_processor (void *cls, const struct GNUNET_MessageHeader *msg)
97 return; 97 return;
98 } 98 }
99 /* expect more replies */ 99 /* expect more replies */
100 GNUNET_CLIENT_receive (alucb->client, 100 GNUNET_CLIENT_receive (alucb->client, &address_response_processor, alucb,
101 &address_response_processor, alucb,
102 GNUNET_TIME_absolute_get_remaining (alucb->timeout)); 101 GNUNET_TIME_absolute_get_remaining (alucb->timeout));
103 alucb->cb (alucb->cb_cls, address); 102 alucb->cb (alucb->cb_cls, address);
104} 103}
@@ -119,10 +118,8 @@ address_response_processor (void *cls, const struct GNUNET_MessageHeader *msg)
119 */ 118 */
120void 119void
121GNUNET_TRANSPORT_address_lookup (const struct GNUNET_CONFIGURATION_Handle *cfg, 120GNUNET_TRANSPORT_address_lookup (const struct GNUNET_CONFIGURATION_Handle *cfg,
122 const char *address, 121 const char *address, size_t addressLen,
123 size_t addressLen, 122 int numeric, const char *nameTrans,
124 int numeric,
125 const char *nameTrans,
126 struct GNUNET_TIME_Relative timeout, 123 struct GNUNET_TIME_Relative timeout,
127 GNUNET_TRANSPORT_AddressLookUpCallback aluc, 124 GNUNET_TRANSPORT_AddressLookUpCallback aluc,
128 void *aluc_cls) 125 void *aluc_cls)
@@ -163,10 +160,8 @@ GNUNET_TRANSPORT_address_lookup (const struct GNUNET_CONFIGURATION_Handle *cfg,
163 aluCB->timeout = GNUNET_TIME_relative_to_absolute (timeout); 160 aluCB->timeout = GNUNET_TIME_relative_to_absolute (timeout);
164 aluCB->client = client; 161 aluCB->client = client;
165 GNUNET_assert (GNUNET_OK == 162 GNUNET_assert (GNUNET_OK ==
166 GNUNET_CLIENT_transmit_and_get_response (client, 163 GNUNET_CLIENT_transmit_and_get_response (client, &msg->header,
167 &msg->header, 164 timeout, GNUNET_YES,
168 timeout,
169 GNUNET_YES,
170 &address_response_processor, 165 &address_response_processor,
171 aluCB)); 166 aluCB));
172 GNUNET_free (msg); 167 GNUNET_free (msg);