summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/gethostbydns.c
diff options
context:
space:
mode:
authorrodrigc <rodrigc@FreeBSD.org>2015-09-20 21:21:01 +0000
committerrodrigc <rodrigc@FreeBSD.org>2015-09-20 21:21:01 +0000
commit4dfb6c3572b83ea3e8bebf716589664f3f9067dd (patch)
tree1ab7c8f43d0c31c080f66ad90616e85b20e247e9 /lib/libc/net/gethostbydns.c
parent6fac89c875e96c44e3b0b7b6b4ee42bbc9cbf8ed (diff)
downloadFreeBSD-src-4dfb6c3572b83ea3e8bebf716589664f3f9067dd.zip
FreeBSD-src-4dfb6c3572b83ea3e8bebf716589664f3f9067dd.tar.gz
Use ANSI C prototypes. Eliminates -Wold-style-definition warnings.
Diffstat (limited to 'lib/libc/net/gethostbydns.c')
-rw-r--r--lib/libc/net/gethostbydns.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/libc/net/gethostbydns.c b/lib/libc/net/gethostbydns.c
index f301c88..ac93abe 100644
--- a/lib/libc/net/gethostbydns.c
+++ b/lib/libc/net/gethostbydns.c
@@ -107,10 +107,7 @@ int _dns_ttl_;
#ifdef DEBUG
static void
-dprintf(msg, num, res)
- char *msg;
- int num;
- res_state res;
+dprintf(char *msg, int num, res_state res)
{
if (res->options & RES_DEBUG) {
int save = errno;
@@ -769,7 +766,7 @@ _sethostdnsent(int stayopen)
}
void
-_endhostdnsent()
+_endhostdnsent(void)
{
res_state statp;
OpenPOWER on IntegriCloud