summaryrefslogtreecommitdiff
path: root/usr/src/lib/libresolv/res_gethost.c
diff options
context:
space:
mode:
authoranay <none@none>2005-07-26 11:14:16 -0700
committeranay <none@none>2005-07-26 11:14:16 -0700
commit6a1c6faa6f0834799d7de3e77fac2ec32d923f9a (patch)
treeb9ffae122f0cfeba99c72deca499b83cd22e9af4 /usr/src/lib/libresolv/res_gethost.c
parent78eb75caca75144af27b7903ffed3fb549faab2f (diff)
downloadillumos-gate-6a1c6faa6f0834799d7de3e77fac2ec32d923f9a.tar.gz
6274683 gcc and libresolv[2] don't get along
Diffstat (limited to 'usr/src/lib/libresolv/res_gethost.c')
-rw-r--r--usr/src/lib/libresolv/res_gethost.c13
1 files changed, 6 insertions, 7 deletions
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);