win32 build; add -r option

This commit is contained in:
Russ Cox
2009-08-25 22:46:22 -07:00
parent 5df8776caf
commit 3bab3a220a
4 changed files with 15 additions and 6 deletions

View File

@ -178,7 +178,7 @@ hostlookup(char *host)
he = gethostbyname(host);
if(he != 0 && he->h_addr_list[0]) {
p = he->h_addr_list[0];
p = (uchar*)he->h_addr_list[0];
sprint(buf, "%ud.%ud.%ud.%ud", p[0], p[1], p[2], p[3]);
} else
strcpy(buf, host);