diff options
author | Mike Fulbright <msf@redhat.com> | 2002-08-09 06:06:07 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2002-08-09 06:06:07 +0000 |
commit | 373155c22468af5fc91c66c490faf1e00854a9ff (patch) | |
tree | fde34ee8ddf37e5025ddcd90771a70a131993802 | |
parent | 0be9696a23fa01eb98a7bf164524bda6a760f943 (diff) | |
download | anaconda-373155c22468af5fc91c66c490faf1e00854a9ff.tar.gz anaconda-373155c22468af5fc91c66c490faf1e00854a9ff.tar.xz anaconda-373155c22468af5fc91c66c490faf1e00854a9ff.zip |
seems to be the correct way to do this (no thanks to crappy man pages for this stuff
-rw-r--r-- | isys/dns.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/isys/dns.c b/isys/dns.c index e67c4186f..bc005eab0 100644 --- a/isys/dns.c +++ b/isys/dns.c @@ -136,12 +136,12 @@ int mygethostbyname(char * host, struct in_addr * address) { char * mygethostbyaddr(const char * ipnum) { struct hostent * he; - struct in_addr * addr; + struct in_addr addr; - if (!inet_aton(ipnum, addr)) + if (!inet_aton(ipnum, &addr)) return NULL; - he = gethostbyaddr(addr, sizeof(struct in_addr), AF_INET); + he = gethostbyaddr(&addr, sizeof(struct in_addr), AF_INET); if (he) return he->h_name; else |