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 | fd8a87c0c1932de591e7ad108ff6288a4b6b18c9 (patch) | |
tree | 6c5c2768fc065d86edff455af1924fe756673254 /resolv/res_comp.c | |
parent | 7ec366a08a7cec7bd23d6b2a4f7954860e3a16fd (diff) | |
download | glibc-fd8a87c0c1932de591e7ad108ff6288a4b6b18c9.zip glibc-fd8a87c0c1932de591e7ad108ff6288a4b6b18c9.tar.gz glibc-fd8a87c0c1932de591e7ad108ff6288a4b6b18c9.tar.bz2 |
resolv: Move dn_comp to its own file and into libc
And reformat it to GNU style.
dn_comp is used in various programs, so keep it as a non-deprecated
symbol. Switch to dn_comp (not __dn_comp) for the ABI name. There
are no internal users, so interposition is not a problem.
The __dn_comp symbol was moved with scripts/move-symbol-to-libc.py
--no-new-version. dn_comp@@GLIBC_2.34 was added with
make update-all-abi.
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'resolv/res_comp.c')
-rw-r--r-- | resolv/res_comp.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/resolv/res_comp.c b/resolv/res_comp.c index 80faea7..1930f17 100644 --- a/resolv/res_comp.c +++ b/resolv/res_comp.c @@ -93,21 +93,6 @@ #include <unistd.h> /* - * Pack domain name 'exp_dn' in presentation form into 'comp_dn'. - * Return the size of the compressed name or -1. - * 'length' is the size of the array pointed to by 'comp_dn'. - */ -int -dn_comp(const char *src, u_char *dst, int dstsiz, - u_char **dnptrs, u_char **lastdnptr) -{ - return (ns_name_compress(src, dst, (size_t)dstsiz, - (const u_char **)dnptrs, - (const u_char **)lastdnptr)); -} -libresolv_hidden_def (dn_comp) - -/* * Skip over a compressed domain name. Return the size or -1. */ int |