diff options
| author | 2020-02-26 18:47:58 +0000 | |
|---|---|---|
| committer | 2020-02-26 18:47:58 +0000 | |
| commit | 873f12b9e6aaf39ba104db6af3d0dc687cd95f7e (patch) | |
| tree | 80081a71df3f42a8248c43286fef79e79ede9a40 /usr.bin/dig/lib/dns/rdata/generic/rt_21.c | |
| parent | In preparation of compiling lib/dns/rdata/ files individually we need (diff) | |
| download | wireguard-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.c | 6 |
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(®ion); isc_region_consume(®ion, 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, ®ion); sub = name_prefix(&name, tctx->origin, &prefix); return (dns_name_totext(&prefix, sub, target)); |
