summaryrefslogtreecommitdiffstats
path: root/lib/libc/asr/res_mkquery.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2015-09-09 15:49:34 +0000
committerderaadt <deraadt@openbsd.org>2015-09-09 15:49:34 +0000
commit253ef89211b2c7bb1270b67fc8f922ab7cd68779 (patch)
tree9dbcb2305237ee451a56969f7e0c1034220ae3ee /lib/libc/asr/res_mkquery.c
parentThe mplock implementations on MP-enabled mips64 platforms, octeon and (diff)
downloadwireguard-openbsd-253ef89211b2c7bb1270b67fc8f922ab7cd68779.tar.xz
wireguard-openbsd-253ef89211b2c7bb1270b67fc8f922ab7cd68779.zip
Hide all unnecessary asr / resolver related API with _ prefixes.
direction & ok guenther
Diffstat (limited to 'lib/libc/asr/res_mkquery.c')
-rw-r--r--lib/libc/asr/res_mkquery.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/libc/asr/res_mkquery.c b/lib/libc/asr/res_mkquery.c
index 27ed21e4d4a..3b169c13194 100644
--- a/lib/libc/asr/res_mkquery.c
+++ b/lib/libc/asr/res_mkquery.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: res_mkquery.c,v 1.8 2014/03/26 18:13:15 eric Exp $ */
+/* $OpenBSD: res_mkquery.c,v 1.9 2015/09/09 15:49:34 deraadt Exp $ */
/*
* Copyright (c) 2012 Eric Faurot <eric@openbsd.org>
*
@@ -51,10 +51,10 @@ res_mkquery(int op, const char *dname, int class, int type,
dname = fqdn;
}
- if (asr_dname_from_fqdn(dname, dn, sizeof(dn)) == -1)
+ if (_asr_dname_from_fqdn(dname, dn, sizeof(dn)) == -1)
return (-1);
- ac = asr_use_resolver(NULL);
+ ac = _asr_use_resolver(NULL);
memset(&h, 0, sizeof h);
h.id = res_randomid();
@@ -62,11 +62,11 @@ res_mkquery(int op, const char *dname, int class, int type,
h.flags |= RD_MASK;
h.qdcount = 1;
- asr_pack_init(&p, buf, buflen);
- asr_pack_header(&p, &h);
- asr_pack_query(&p, type, class, dn);
+ _asr_pack_init(&p, buf, buflen);
+ _asr_pack_header(&p, &h);
+ _asr_pack_query(&p, type, class, dn);
- asr_ctx_unref(ac);
+ _asr_ctx_unref(ac);
if (p.err)
return (-1);
@@ -100,7 +100,7 @@ res_querydomain(const char *name,
domain = ndom;
}
- if (asr_make_fqdn(name, domain, fqdn, sizeof fqdn) == 0) {
+ if (_asr_make_fqdn(name, domain, fqdn, sizeof fqdn) == 0) {
h_errno = NETDB_INTERNAL;
errno = EINVAL;
return (-1);