projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use perror_msg_and_die function where appropriate.
[oweals/busybox.git]
/
networking
/
nslookup.c
diff --git
a/networking/nslookup.c
b/networking/nslookup.c
index 8bfcd578587f66a9883002eb0abb3ced8c37287c..8791b5efee4aa66d998d52bc874b44863e65a3fc 100644
(file)
--- a/
networking/nslookup.c
+++ b/
networking/nslookup.c
@@
-21,7
+21,6
@@
*
*/
*
*/
-#include "busybox.h"
#include <ctype.h>
#include <errno.h>
#include <stdio.h>
#include <ctype.h>
#include <errno.h>
#include <stdio.h>
@@
-32,6
+31,7
@@
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
+#include "busybox.h"
/*
| I'm only implementing non-interactive mode;
/*
| I'm only implementing non-interactive mode;
@@
-157,7
+157,7
@@
int nslookup_main(int argc, char **argv)
struct hostent *host;
if (argc < 2 || *argv[1]=='-') {
struct hostent *host;
if (argc < 2 || *argv[1]=='-') {
-
usage(nslookup_usage
);
+
show_usage(
);
}
server_print();
}
server_print();
@@
-170,4
+170,4
@@
int nslookup_main(int argc, char **argv)
return EXIT_SUCCESS;
}
return EXIT_SUCCESS;
}
-/* $Id: nslookup.c,v 1.2
0 2001/01/27 09:33:3
8 andersen Exp $ */
+/* $Id: nslookup.c,v 1.2
2 2001/02/20 06:14:0
8 andersen Exp $ */