projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove yet more kernel header dependancies.
[oweals/busybox.git]
/
nslookup.c
diff --git
a/nslookup.c
b/nslookup.c
index 3223b3b63b6f8d01b6d62296872890fce20ce4fa..54f37c8481d690b12f456b429fd1bd789a45601d 100644
(file)
--- a/
nslookup.c
+++ b/
nslookup.c
@@
-41,7
+41,11
@@
| + find out how the real nslookup gets the default name server
*/
| + 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.
/* 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, "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;
}
}
return host;
}
@@
-170,7
+174,7
@@
int nslookup_main(int argc, char **argv)
host = gethostbyname(argv[1]);
}
hostent_fprint(host, stdout);
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 $ */