summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2014-10-01 12:18:15 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-10-01 13:34:54 -0700
commit9d1b9aa9e10da398f430bc619b361d83bee6df7d (patch)
treed03c4f8a2f4463e96c09da86bfc542acb8bfe841
parentdaemon: handle gethostbyname() error (diff)
downloadtgif-9d1b9aa9e10da398f430bc619b361d83bee6df7d.tar.xz
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>
-rw-r--r--daemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon.c b/daemon.c
index 25af533b97..3be38f4dbc 100644
--- a/daemon.c
+++ b/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 ) {
- 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);