diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-04-27 04:06:55 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-04-27 04:06:55 +0000 |
commit | 3a01f8cae207bcd3ad27a6e12d98873fbd226a11 (patch) | |
tree | 6edd98a5853a8153c528f75b466b650ee4a17718 | |
parent | ef38b392627b31abf6b99273311d2a155023e73a (diff) | |
download | busybox-w32-3a01f8cae207bcd3ad27a6e12d98873fbd226a11.tar.gz busybox-w32-3a01f8cae207bcd3ad27a6e12d98873fbd226a11.tar.bz2 busybox-w32-3a01f8cae207bcd3ad27a6e12d98873fbd226a11.zip |
uClibc supports struct _res these days...
-rw-r--r-- | networking/nslookup.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/networking/nslookup.c b/networking/nslookup.c index 81b57cccf..02d18461e 100644 --- a/networking/nslookup.c +++ b/networking/nslookup.c | |||
@@ -128,14 +128,6 @@ static struct hostent *gethostbyaddr_wrapper(const char *address) | |||
128 | return gethostbyaddr((char *) &addr, 4, AF_INET); /* IPv4 only for now */ | 128 | return gethostbyaddr((char *) &addr, 4, AF_INET); /* IPv4 only for now */ |
129 | } | 129 | } |
130 | 130 | ||
131 | #ifdef __UCLIBC__ | ||
132 | #warning FIXME after fixing uClibc to define struct _res | ||
133 | static inline void server_print(void) | ||
134 | { | ||
135 | printf("Server: %s\n", "default"); | ||
136 | printf("Address: %s\n\n", "default"); | ||
137 | } | ||
138 | #else | ||
139 | /* lookup the default nameserver and display it */ | 131 | /* lookup the default nameserver and display it */ |
140 | static inline void server_print(void) | 132 | static inline void server_print(void) |
141 | { | 133 | { |
@@ -145,7 +137,6 @@ static inline void server_print(void) | |||
145 | hostent_fprint(gethostbyaddr_wrapper(ip), "Server:"); | 137 | hostent_fprint(gethostbyaddr_wrapper(ip), "Server:"); |
146 | printf("\n"); | 138 | printf("\n"); |
147 | } | 139 | } |
148 | #endif | ||
149 | 140 | ||
150 | /* naive function to check whether char *s is an ip address */ | 141 | /* naive function to check whether char *s is an ip address */ |
151 | static int is_ip_address(const char *s) | 142 | static int is_ip_address(const char *s) |
@@ -180,4 +171,4 @@ int nslookup_main(int argc, char **argv) | |||
180 | return EXIT_SUCCESS; | 171 | return EXIT_SUCCESS; |
181 | } | 172 | } |
182 | 173 | ||
183 | /* $Id: nslookup.c,v 1.27 2001/11/10 11:22:43 andersen Exp $ */ | 174 | /* $Id: nslookup.c,v 1.28 2002/04/27 04:06:55 andersen Exp $ */ |