From 6a1c6faa6f0834799d7de3e77fac2ec32d923f9a Mon Sep 17 00:00:00 2001 From: anay Date: Tue, 26 Jul 2005 11:14:16 -0700 Subject: 6274683 gcc and libresolv[2] don't get along --- usr/src/lib/libresolv/res_gethost.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'usr/src/lib/libresolv/res_gethost.c') diff --git a/usr/src/lib/libresolv/res_gethost.c b/usr/src/lib/libresolv/res_gethost.c index 9e20672a14..b7c42b335e 100644 --- a/usr/src/lib/libresolv/res_gethost.c +++ b/usr/src/lib/libresolv/res_gethost.c @@ -339,11 +339,10 @@ res_gethostbyaddr(addr, len, type) return ((struct hostent *)NULL); } -static -_sethtent(f) - int f; +static void +_sethtent(int f) { - if (__res_no_hosts_fallback()) return(0); + if (__res_no_hosts_fallback()) return; if (hostf == NULL) hostf = fopen(HOSTDB, "r"); @@ -352,10 +351,10 @@ _sethtent(f) stayopen |= f; } -static -_endhtent() +static void +_endhtent(void) { - if (__res_no_hosts_fallback()) return(0); + if (__res_no_hosts_fallback()) return; if (hostf && !stayopen) { (void) fclose(hostf); -- cgit v1.2.3