summaryrefslogtreecommitdiff
path: root/daemon.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2014-10-01 12:18:15 +0200
committerJunio C Hamano <gitster@pobox.com>2014-10-01 13:34:54 -0700
commit9d1b9aa9e10da398f430bc619b361d83bee6df7d (patch)
treed03c4f8a2f4463e96c09da86bfc542acb8bfe841 /daemon.c
parenteb6c403500dd0b0d78b7b00d7ed0bf6b5daccc4e (diff)
downloadgit-9d1b9aa9e10da398f430bc619b361d83bee6df7d.tar.gz
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>
Diffstat (limited to 'daemon.c')
-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);