From 320d839e39b3f6860823f5ecc839838d93c40414 Mon Sep 17 00:00:00 2001 From: Pierre Habouzit Date: Wed, 29 Aug 2007 20:14:08 +0200 Subject: [PATCH] More homogeneous name: tcp_listen -> tcp_listen_nonblock. Signed-off-by: Pierre Habouzit --- daemon.c | 2 +- daemon.h | 2 +- srsd.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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; } -- 2.20.1