summaryrefslogtreecommitdiffstats
path: root/usr.bin/dig/lib/dns/rdata/generic/rt_21.c
diff options
context:
space:
mode:
authorflorian <florian@openbsd.org>2020-02-26 18:47:58 +0000
committerflorian <florian@openbsd.org>2020-02-26 18:47:58 +0000
commit873f12b9e6aaf39ba104db6af3d0dc687cd95f7e (patch)
tree80081a71df3f42a8248c43286fef79e79ede9a40 /usr.bin/dig/lib/dns/rdata/generic/rt_21.c
parentIn preparation of compiling lib/dns/rdata/ files individually we need (diff)
downloadwireguard-openbsd-873f12b9e6aaf39ba104db6af3d0dc687cd95f7e.tar.xz
wireguard-openbsd-873f12b9e6aaf39ba104db6af3d0dc687cd95f7e.zip
In preparation of compiling lib/dns/rdata/ files individually we need
global visibility of str_totext. Rename it to isc_str_tobuffer, put it into buffer.c and delete duplicate implementations.
Diffstat (limited to 'usr.bin/dig/lib/dns/rdata/generic/rt_21.c')
-rw-r--r--usr.bin/dig/lib/dns/rdata/generic/rt_21.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/dig/lib/dns/rdata/generic/rt_21.c b/usr.bin/dig/lib/dns/rdata/generic/rt_21.c
index d2b31379d8f..fd506e530b0 100644
--- a/usr.bin/dig/lib/dns/rdata/generic/rt_21.c
+++ b/usr.bin/dig/lib/dns/rdata/generic/rt_21.c
@@ -14,7 +14,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: rt_21.c,v 1.10 2020/02/26 18:38:15 florian Exp $ */
+/* $Id: rt_21.c,v 1.11 2020/02/26 18:47:59 florian Exp $ */
/* reviewed: Thu Mar 16 15:02:31 PST 2000 by brister */
@@ -42,8 +42,8 @@ totext_rt(ARGS_TOTEXT) {
num = uint16_fromregion(&region);
isc_region_consume(&region, 2);
snprintf(buf, sizeof(buf), "%u", num);
- RETERR(str_totext(buf, target));
- RETERR(str_totext(" ", target));
+ RETERR(isc_str_tobuffer(buf, target));
+ RETERR(isc_str_tobuffer(" ", target));
dns_name_fromregion(&name, &region);
sub = name_prefix(&name, tctx->origin, &prefix);
return (dns_name_totext(&prefix, sub, target));