Fix the pwd and group functions. The bb_ stuff was a leftover from
[oweals/busybox.git] / nslookup.c
index 62fea35fa6e8a437b8f878be94beb75d588d5b4e..8bfcd578587f66a9883002eb0abb3ced8c37287c 100644 (file)
@@ -2,7 +2,7 @@
 /*
  * Mini nslookup implementation for busybox
  *
- * Copyright (C) 2000 by Lineo, inc.
+ * Copyright (C) 1999,2000,2001 by Lineo, inc.
  * Written by John Beppu <beppu@lineo.com>
  *
  * This program is free software; you can redistribute it and/or modify
@@ -26,6 +26,7 @@
 #include <errno.h>
 #include <stdio.h>
 #include <string.h>
+#include <stdlib.h>
 
 #include <netdb.h>
 #include <sys/socket.h>
@@ -45,7 +46,7 @@
  * I could dig through /etc/resolv.conf, but is there a
  * better (programatic) way?
  */
-static inline void server_fprint(void)
+static inline void server_print(void)
 {
        printf("Server:     %s\n", "default");
        printf("Address:    %s\n\n", "default");
@@ -159,7 +160,7 @@ int nslookup_main(int argc, char **argv)
                usage(nslookup_usage);
        }
 
-       server_fprint();
+       server_print();
        if (is_ip_address(argv[1])) {
                host = gethostbyaddr_wrapper(argv[1]);
        } else {
@@ -169,4 +170,4 @@ int nslookup_main(int argc, char **argv)
        return EXIT_SUCCESS;
 }
 
-/* $Id: nslookup.c,v 1.14 2001/01/20 16:22:58 andersen Exp $ */
+/* $Id: nslookup.c,v 1.20 2001/01/27 09:33:38 andersen Exp $ */