Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2014-10-01 14:18:15 +0400
committerJunio C Hamano <gitster@pobox.com>2014-10-02 00:34:54 +0400
commit9d1b9aa9e10da398f430bc619b361d83bee6df7d (patch)
treed03c4f8a2f4463e96c09da86bfc542acb8bfe841 /daemon.c
parenteb6c403500dd0b0d78b7b00d7ed0bf6b5daccc4e (diff)
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);