X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=nslookup.c;h=54f37c8481d690b12f456b429fd1bd789a45601d;hb=9b2297a34e35be143155769a470331af2f2b9330;hp=3223b3b63b6f8d01b6d62296872890fce20ce4fa;hpb=5e1189e187f6a7957dadb8eda2c271c4a0777a23;p=oweals%2Fbusybox.git diff --git a/nslookup.c b/nslookup.c index 3223b3b63..54f37c848 100644 --- a/nslookup.c +++ b/nslookup.c @@ -41,7 +41,11 @@ | + find out how the real nslookup gets the default name server */ -static const char nslookup_usage[] = "nslookup [HOST]\n\nQueries the nameserver for the IP address of the given HOST\n"; +static const char nslookup_usage[] = "nslookup [HOST]\n" +#ifndef BB_FEATURE_TRIVIAL_HELP + "\nQueries the nameserver for the IP address of the given HOST\n" +#endif +; /* I have to see how the real nslookup does this. @@ -135,7 +139,7 @@ static struct hostent *hostent_fprint(struct hostent *host, FILE * dst) fprintf(dst, "Name: %s\n", host->h_name); addr_list_fprint(host->h_addr_list, dst); } else { - fprintf(dst, "*** %s\n", hstrerror(h_errno)); + fprintf(dst, "*** Unknown host\n"); } return host; } @@ -170,7 +174,7 @@ int nslookup_main(int argc, char **argv) host = gethostbyname(argv[1]); } hostent_fprint(host, stdout); - exit( TRUE); + return( TRUE); } -/* $Id: nslookup.c,v 1.7 2000/04/15 16:34:54 erik Exp $ */ +/* $Id: nslookup.c,v 1.10 2000/06/19 17:25:40 andersen Exp $ */