diff options
author | Denis Vlasenko | 2006-11-07 19:05:43 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-11-07 19:05:43 +0000 |
commit | 8528151658927bcb4822f2956b93d352cf5ad2e6 (patch) | |
tree | 2a0bc89c187db4a406e382edf4b4f1605018e20b /networking/nc.c | |
parent | 6476cc108969cb44cad868d8df2c17ee2f953cc2 (diff) | |
download | busybox-8528151658927bcb4822f2956b93d352cf5ad2e6.zip busybox-8528151658927bcb4822f2956b93d352cf5ad2e6.tar.gz |
small ipv6 doc changes; nslookup a tiny bit smaller
Diffstat (limited to 'networking/nc.c')
-rw-r--r-- | networking/nc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/nc.c b/networking/nc.c index a940d8a..2f8a36b 100644 --- a/networking/nc.c +++ b/networking/nc.c @@ -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; |