From 4aa1d4bdc710dd5535ba00aa84141d1db5c09ab0 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Fri, 25 Oct 2013 18:59:40 +0200 Subject: [PATCH] =?utf8?q?socket=20frontend:=20Renamed=20accept=5Fconnecti?= =?utf8?q?on=20=E2=86=92=20connection=5Faccept.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/frontend/sock.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/frontend/sock.c b/src/frontend/sock.c index a389a14..667b616 100644 --- a/src/frontend/sock.c +++ b/src/frontend/sock.c @@ -337,12 +337,12 @@ connection_handler(void *data) } /* connection_handler */ static int -accept_connection(sdb_fe_socket_t *sock, listener_t *listener) +connection_accept(sdb_fe_socket_t *sock, listener_t *listener) { sdb_object_t *obj; - /* the X's will be replaced with the accepted file descriptor - * when initializing the object */ + /* the placeholder will be replaced with the accepted file + * descriptor when initializing the object */ obj = sdb_object_create(CONN_FD_PREFIX CONN_FD_PLACEHOLDER, connection_type, listener->sock_fd); if (! obj) @@ -359,7 +359,7 @@ accept_connection(sdb_fe_socket_t *sock, listener_t *listener) /* hand ownership over to the list */ sdb_object_deref(obj); return 0; -} /* accept_connection */ +} /* connection_accept */ /* * public API @@ -509,7 +509,7 @@ sdb_fe_sock_listen_and_serve(sdb_fe_socket_t *sock, sdb_fe_loop_t *loop) for (i = 0; i < sock->listeners_num; ++i) { listener_t *listener = sock->listeners + i; if (FD_ISSET(listener->sock_fd, &ready)) - if (accept_connection(sock, listener)) + if (connection_accept(sock, listener)) continue; } -- 2.30.2