diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-07-19 07:55:27 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-07-19 07:56:21 +0200 |
commit | 640bbdf71c6f10ac26252ac67a22902e26657bd8 (patch) | |
tree | 227d6260dda188bdc22f2d9a6b52acd77c3d68b7 /resolv/ns_parse.c | |
parent | 13e1f86706e463de4429f7e88f47c6ff65cd845e (diff) | |
download | glibc-640bbdf71c6f10ac26252ac67a22902e26657bd8.tar.gz glibc-640bbdf71c6f10ac26252ac67a22902e26657bd8.tar.xz glibc-640bbdf71c6f10ac26252ac67a22902e26657bd8.zip |
resolv: Move dn_expand to its own file and into libc
And reformat to GNU style. This switches back to the dn_expand name for the ABI symbol and turns __dn_expand into a compatibility symbol. With the improved namespace management in current glibc, it is no longer necessary to use a private namespace symbol. To avoid old code binding to a GLIBC_PRIVATE symbol by accident, use __libc_dn_expand for the internal symbol name. The symbols dn_expand, __dnexpand were moved using scripts/move-symbol-to-libc.py, followed by an adjustment to make dn_expand the only GLIBC_2.34 symbol. Reviewed-by: Carlos O'Donell <carlos@redhat.com> Tested-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'resolv/ns_parse.c')
-rw-r--r-- | resolv/ns_parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/resolv/ns_parse.c b/resolv/ns_parse.c index 863b20a9f7..8ae72e7e1f 100644 --- a/resolv/ns_parse.c +++ b/resolv/ns_parse.c @@ -154,8 +154,8 @@ ns_parserr(ns_msg *handle, ns_sect section, int rrnum, ns_rr *rr) { } /* Do the parse. */ - b = dn_expand(handle->_msg, handle->_eom, - handle->_msg_ptr, rr->name, NS_MAXDNAME); + b = __libc_dn_expand (handle->_msg, handle->_eom, + handle->_msg_ptr, rr->name, NS_MAXDNAME); if (b < 0) return (-1); handle->_msg_ptr += b; |