aboutsummaryrefslogtreecommitdiff
path: root/libc/dns/net/sethostent.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/dns/net/sethostent.c')
-rw-r--r--libc/dns/net/sethostent.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/libc/dns/net/sethostent.c b/libc/dns/net/sethostent.c
index a743a543e..483105a95 100644
--- a/libc/dns/net/sethostent.c
+++ b/libc/dns/net/sethostent.c
@@ -55,9 +55,6 @@ __RCSID("$NetBSD: sethostent.c,v 1.20 2014/03/17 13:24:23 christos Exp $");
#include "hostent.h"
#include "resolv_private.h"
-#define ALIGNBYTES (sizeof(uintptr_t) - 1)
-#define ALIGN(p) (((uintptr_t)(p) + ALIGNBYTES) &~ ALIGNBYTES)
-
#ifndef _REENTRANT
void res_close(void);
#endif
@@ -68,14 +65,14 @@ void
/*ARGSUSED*/
sethostent(int stayopen)
{
- res_static rs = __res_get_static();
+ struct res_static* rs = __res_get_static();
if (rs) sethostent_r(&rs->hostf);
}
void
endhostent(void)
{
- res_static rs = __res_get_static();
+ struct res_static* rs = __res_get_static();
if (rs) endhostent_r(&rs->hostf);
}