diff options
author | Ulrich Drepper <drepper@redhat.com> | 2005-12-30 22:47:37 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2005-12-30 22:47:37 +0000 |
commit | db0a00d3aaf16e9d832577b5a60ae081874b41a2 (patch) | |
tree | 7f5b60e9f47d1e15ce4546028e2e657823777812 /resolv/gethnamaddr.c | |
parent | 3ddf7149f0acbffc3a24858faac04f29f57bd415 (diff) | |
download | glibc-db0a00d3aaf16e9d832577b5a60ae081874b41a2.tar glibc-db0a00d3aaf16e9d832577b5a60ae081874b41a2.tar.gz glibc-db0a00d3aaf16e9d832577b5a60ae081874b41a2.tar.bz2 glibc-db0a00d3aaf16e9d832577b5a60ae081874b41a2.zip |
* resolv/res_debug.c (latlon2ul): Use ISO C function declaration.
(precsize_aton): Likewise.
(precsize_ntoa): Likewise.
* resolv/gethnamaddr.c (_gethtbyname): Remove extra prototype.
(gethostbyname2): Likewise.
(gethostbyaddr): Likewise.
(getanswer): Use ISO C function declaration.
Diffstat (limited to 'resolv/gethnamaddr.c')
-rw-r--r-- | resolv/gethnamaddr.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/resolv/gethnamaddr.c b/resolv/gethnamaddr.c index bab2535ceb..7be23158d0 100644 --- a/resolv/gethnamaddr.c +++ b/resolv/gethnamaddr.c @@ -176,11 +176,7 @@ Dprintf(msg, num) static struct hostent * -getanswer(answer, anslen, qname, qtype) - const querybuf *answer; - int anslen; - const char *qname; - int qtype; +getanswer (const querybuf *answer, int anslen, const char *qname, int qtype) { register const HEADER *hp; register const u_char *cp; @@ -522,7 +518,6 @@ gethostbyname2(name, af) char *bp; int n, size, type, len; struct hostent *ret; - extern struct hostent *_gethtbyname2(); if (__res_maybe_init (&_res, 0) == -1) { __set_h_errno (NETDB_INTERNAL); @@ -666,7 +661,6 @@ gethostbyaddr(addr, len, af) u_long old_options; char hname2[MAXDNAME+1]; #endif /*SUNSECURITY*/ - extern struct hostent *_gethtbyaddr(); if (__res_maybe_init (&_res, 0) == -1) { __set_h_errno (NETDB_INTERNAL); @@ -879,7 +873,6 @@ struct hostent * _gethtbyname(name) const char *name; { - extern struct hostent *_gethtbyname2(); struct hostent *hp; if (_res.options & RES_USE_INET6) { |