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:
parent
eb6c403500
commit
9d1b9aa9e1
2
daemon.c
2
daemon.c
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user