summaryrefslogtreecommitdiff
path: root/usr/src/lib/libresolv/res_gethost.c
diff options
context:
space:
mode:
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);