From: René Scharfe Date: Wed, 01 Oct 2014 10:18:15 GMT Subject: [PATCH 2/3] daemon: fix error message after bind() Message-ID: <542BD4E7.7030401@web.de> In-Reply-To: <542BD471.3000308@web.de> Signed-off-by: Rene Scharfe --- daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon.c b/daemon.c index a6f467e..090f6a4 100644 --- a/daemon.c +++ b/daemon.c @@ -924,7 +924,7 @@ static int setup_named_sock(char *listen_addr, int listen_port, struct socketlis } if ( bind(sockfd, (struct sockaddr *)&sin, sizeof sin) < 0 ) { - logerror("Could not listen to %s: %s", + logerror("Could not bind to %s: %s", ip2str(AF_INET, (struct sockaddr *)&sin, sizeof(sin)), strerror(errno)); close(sockfd); -- 2.1.2