daemon: unbreak NO_IPV6 build regression
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>
Junio C Hamano committed
May 5, 2015 at 11:03 UTC
d358f771e3a0e78ea8ebed7edf48a12a7620c813
1 file changed
+1
-1
daemon.c
+1
-1
@@ -633,7 +633,7 @@ static void lookup_hostname(struct hostinfo *hi)
633
char **ap;
634
static char addrbuf[HOST_NAME_MAX + 1];
635
636
- hent = gethostbyname(hostname.buf);
636
+ hent = gethostbyname(hi->hostname.buf);
637
if (hent) {
638
ap = hent->h_addr_list;
639
memset(&sa, 0, sizeof sa);