Skip to content

Commit d358f77

Browse files
committed
daemon: unbreak NO_IPV6 build regression
When 01cec54 (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 <[email protected]>
1 parent 01cec54 commit d358f77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

daemon.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ static void lookup_hostname(struct hostinfo *hi)
633633
char **ap;
634634
static char addrbuf[HOST_NAME_MAX + 1];
635635

636-
hent = gethostbyname(hostname.buf);
636+
hent = gethostbyname(hi->hostname.buf);
637637
if (hent) {
638638
ap = hent->h_addr_list;
639639
memset(&sa, 0, sizeof sa);

0 commit comments

Comments
 (0)