diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-07 19:05:43 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-07 19:05:43 +0000 |
commit | 8528151658927bcb4822f2956b93d352cf5ad2e6 (patch) | |
tree | 2a0bc89c187db4a406e382edf4b4f1605018e20b /networking/nslookup.c | |
parent | 6476cc108969cb44cad868d8df2c17ee2f953cc2 (diff) | |
download | busybox-8528151658927bcb4822f2956b93d352cf5ad2e6.tar.gz |
small ipv6 doc changes; nslookup a tiny bit smaller
Diffstat (limited to 'networking/nslookup.c')
-rw-r--r-- | networking/nslookup.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/networking/nslookup.c b/networking/nslookup.c index dd49e2669..89a2d6481 100644 --- a/networking/nslookup.c +++ b/networking/nslookup.c @@ -82,9 +82,10 @@ static int print_host(const char *hostname, const char *header) while (cur) { sockaddr_to_dotted(cur->ai_addr, str, sizeof(str)); printf("%s %s\nAddress: %s", header, hostname, str); - if (getnameinfo(cur->ai_addr, cur->ai_addrlen, str, sizeof(str), NULL, 0, NI_NAMEREQD)) + s[0] = ' '; + if (getnameinfo(cur->ai_addr, cur->ai_addrlen, str+1, sizeof(str)-1, NULL, 0, NI_NAMEREQD)) str[0] = '\0'; - printf(" %s\n", str); + puts(str); cur = cur->ai_next; } } else { |