small ipv6 doc changes; nslookup a tiny bit smaller

This commit is contained in:
Denis Vlasenko
2006-11-07 19:05:43 +00:00
parent 6476cc1089
commit 8528151658
3 changed files with 6 additions and 4 deletions

View File

@@ -25,7 +25,6 @@ int nc_main(int argc, char **argv)
SKIP_NC_EXTRA (const int execparam = 0;)
USE_NC_EXTRA (char **execparam = NULL;)
struct sockaddr_in address;
struct hostent *hostinfo;
fd_set readfds, testfds;
int opt; /* must be signed (getopt returns -1) */
@@ -116,6 +115,7 @@ int nc_main(int argc, char **argv)
if (!execparam) close(sfd);
} else {
struct hostent *hostinfo;
hostinfo = xgethostbyname(argv[0]);
address.sin_addr = *(struct in_addr *) *hostinfo->h_addr_list;