aboutsummaryrefslogtreecommitdiff
path: root/src/util/connection.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/connection.c')
-rw-r--r--src/util/connection.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/util/connection.c b/src/util/connection.c
index 71135d6b8..8fe136b02 100644
--- a/src/util/connection.c
+++ b/src/util/connection.c
@@ -204,12 +204,12 @@ struct GNUNET_CONNECTION_Handle
204 /** 204 /**
205 * Read task that we may need to wait for. 205 * Read task that we may need to wait for.
206 */ 206 */
207 struct GNUNET_SCHEDULER_Task * read_task; 207 struct GNUNET_SCHEDULER_Task *read_task;
208 208
209 /** 209 /**
210 * Write task that we may need to wait for. 210 * Write task that we may need to wait for.
211 */ 211 */
212 struct GNUNET_SCHEDULER_Task * write_task; 212 struct GNUNET_SCHEDULER_Task *write_task;
213 213
214 /** 214 /**
215 * Handle to a pending DNS lookup request. 215 * Handle to a pending DNS lookup request.
@@ -311,14 +311,14 @@ GNUNET_CONNECTION_create_from_existing (struct GNUNET_NETWORK_Handle *osSocket)
311 * Create a connection handle by accepting on a listen socket. This 311 * Create a connection handle by accepting on a listen socket. This
312 * function may block if the listen socket has no connection ready. 312 * function may block if the listen socket has no connection ready.
313 * 313 *
314 * @param access function to use to check if access is allowed 314 * @param access_cb function to use to check if access is allowed
315 * @param access_cls closure for access 315 * @param access_cb_cls closure for @a access_cb
316 * @param lsock listen socket 316 * @param lsock listen socket
317 * @return the connection handle, NULL on error 317 * @return the connection handle, NULL on error
318 */ 318 */
319struct GNUNET_CONNECTION_Handle * 319struct GNUNET_CONNECTION_Handle *
320GNUNET_CONNECTION_create_from_accept (GNUNET_CONNECTION_AccessCheck access, 320GNUNET_CONNECTION_create_from_accept (GNUNET_CONNECTION_AccessCheck access_cb,
321 void *access_cls, 321 void *access_cb_cls,
322 struct GNUNET_NETWORK_Handle *lsock) 322 struct GNUNET_NETWORK_Handle *lsock)
323{ 323{
324 struct GNUNET_CONNECTION_Handle *connection; 324 struct GNUNET_CONNECTION_Handle *connection;
@@ -415,8 +415,8 @@ GNUNET_CONNECTION_create_from_accept (GNUNET_CONNECTION_AccessCheck access,
415#endif 415#endif
416 } 416 }
417 417
418 if ((NULL != access) && 418 if ((NULL != access_cb) &&
419 (GNUNET_YES != (aret = access (access_cls, gcp, uaddr, addrlen)))) 419 (GNUNET_YES != (aret = access_cb (access_cb_cls, gcp, uaddr, addrlen))))
420 { 420 {
421 if (GNUNET_NO == aret) 421 if (GNUNET_NO == aret)
422 LOG (GNUNET_ERROR_TYPE_INFO, 422 LOG (GNUNET_ERROR_TYPE_INFO,