daemon: fix error message after bind()

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
René Scharfe 2014-10-01 12:18:15 +02:00 committed by Junio C Hamano
parent eb6c403500
commit 9d1b9aa9e1

View File

@ -950,7 +950,7 @@ static int setup_named_sock(char *listen_addr, int listen_port, struct socketlis
} }
if ( bind(sockfd, (struct sockaddr *)&sin, sizeof sin) < 0 ) { 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)), ip2str(AF_INET, (struct sockaddr *)&sin, sizeof(sin)),
strerror(errno)); strerror(errno));
close(sockfd); close(sockfd);