From: Pierre Habouzit Date: Wed, 29 Aug 2007 18:14:08 +0000 (+0200) Subject: More homogeneous name: tcp_listen -> tcp_listen_nonblock. X-Git-Url: http://git.madism.org/?a=commitdiff_plain;h=320d839e39b3f6860823f5ecc839838d93c40414;p=apps%2Fpfixtools.git More homogeneous name: tcp_listen -> tcp_listen_nonblock. Signed-off-by: Pierre Habouzit --- diff --git a/daemon.c b/daemon.c index 64f9c68..c3aac5f 100644 --- a/daemon.c +++ b/daemon.c @@ -57,7 +57,7 @@ static int setnonblock(int sock) } -int tcp_listen(const struct sockaddr *addr, socklen_t len) +int tcp_listen_nonblock(const struct sockaddr *addr, socklen_t len) { int sock; diff --git a/daemon.h b/daemon.h index 76f9f94..2fec199 100644 --- a/daemon.h +++ b/daemon.h @@ -36,7 +36,7 @@ #ifndef POSTLICYD_DAEMON_H #define POSTLICYD_DAEMON_H -int tcp_listen(const struct sockaddr *addr, socklen_t len); +int tcp_listen_nonblock(const struct sockaddr *addr, socklen_t len); int accept_nonblock(int fd); #endif diff --git a/srsd.c b/srsd.c index 8d88677..467c2f2 100644 --- a/srsd.c +++ b/srsd.c @@ -172,7 +172,7 @@ int start_listener(int epollfd, int port, bool decoder) int sock; addr.sin_port = htons(port); - sock = tcp_listen((const struct sockaddr *)&addr, sizeof(addr)); + sock = tcp_listen_nonblock((const struct sockaddr *)&addr, sizeof(addr)); if (sock < 0) { return -1; }