diff options
author | David Cantrell <dcantrell@redhat.com> | 2006-07-28 19:00:39 +0000 |
---|---|---|
committer | David Cantrell <dcantrell@redhat.com> | 2006-07-28 19:00:39 +0000 |
commit | 5a77419f3926baee6d2116ae2ec52a05ece999e1 (patch) | |
tree | 259a77dee7c2621333f1efd5b267251aea2be44f /isys | |
parent | a9240ccced95966c0739419b62bce0367f378e40 (diff) | |
download | anaconda-5a77419f3926baee6d2116ae2ec52a05ece999e1.tar.gz anaconda-5a77419f3926baee6d2116ae2ec52a05ece999e1.tar.xz anaconda-5a77419f3926baee6d2116ae2ec52a05ece999e1.zip |
* isys/dns.c: Removed code that's not in use anymore.
* loader2/ftp.c: Notes to myself.
Diffstat (limited to 'isys')
-rw-r--r-- | isys/dns.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/isys/dns.c b/isys/dns.c index b52241254..200360e0d 100644 --- a/isys/dns.c +++ b/isys/dns.c @@ -9,7 +9,6 @@ /* This is dumb, but glibc doesn't like to do hostname lookups w/o libc.so */ -#ifndef DIET union dns_response{ HEADER hdr; u_char buf[PACKETSZ]; @@ -153,37 +152,6 @@ int mygethostbyname(char * name, struct in_addr * addr) { return doQuery(name, T_A, NULL, addr); } -#else -#include <netdb.h> -#include <sys/socket.h> -#include <string.h> - -int mygethostbyname(char * host, struct in_addr * address) { - struct hostent * hostinfo; - - hostinfo = gethostbyname(host); - if (!hostinfo) return 1; - - memcpy(address, hostinfo->h_addr_list[0], hostinfo->h_length); - return 0; -} - -char * mygethostbyaddr(const char * ipnum) { - struct hostent * he; - struct in_addr addr; - - if (!inet_aton(ipnum, &addr)) - return NULL; - - he = gethostbyaddr(&addr, sizeof(struct in_addr), AF_INET); - if (he) - return he->h_name; - else - return NULL; -} - -#endif - #if 0 int main(int argc, char **argv) |