summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-05-05 11:03:24 -0700
committerJunio C Hamano <gitster@pobox.com>2015-05-05 11:03:24 -0700
commitd358f771e3a0e78ea8ebed7edf48a12a7620c813 (patch)
treed784aa7c01f85fb44de7c09626c2998cd1178b9a
parent01cec54e135c6c70bf6e1e197590749076e7cdfd (diff)
downloadgit-jc/daemon-no-ipv6-for-2.4.1.tar.gz
daemon: unbreak NO_IPV6 build regressionjc/daemon-no-ipv6-for-2.4.1
When 01cec54e (daemon: deglobalize hostname information, 2015-03-07) wrapped the global variables such as hostname inside a struct, it forgot to convert one location that spelled "hostname" that needs to be updated to "hi->hostname". This was inside NO_IPV6 block, and was not caught by anybody. 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 9ee21877cd..4be10914e6 100644
--- a/daemon.c
+++ b/daemon.c
@@ -633,7 +633,7 @@ static void lookup_hostname(struct hostinfo *hi)
char **ap;
static char addrbuf[HOST_NAME_MAX + 1];
- hent = gethostbyname(hostname.buf);
+ hent = gethostbyname(hi->hostname.buf);
if (hent) {
ap = hent->h_addr_list;
memset(&sa, 0, sizeof sa);