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 | 391e02236b931132c0e8b5ba4c3b087c2aaa1044 (patch) | |
tree | 692244699dcec82a94b0c2d82f09f9d21c4b7e47 /resolv/res_comp.c | |
parent | fd8a87c0c1932de591e7ad108ff6288a4b6b18c9 (diff) | |
download | glibc-391e02236b931132c0e8b5ba4c3b087c2aaa1044.tar.gz glibc-391e02236b931132c0e8b5ba4c3b087c2aaa1044.tar.xz glibc-391e02236b931132c0e8b5ba4c3b087c2aaa1044.zip |
resolv: Move dn_skipname to its own file and into libc
And reformat it to GNU style. dn_skipname is used outside glibc, so do not deprecate it, and export it as dn_skipname (not __dn_skipname). Due to internal users, provide a __libc_dn_skipname alias, and keep __dn_skipname as a pure compatibility symbol. __dn_skipname@GLIBC_2.0 was moved using the script, and dn_skipname@@GLIBC_2.34 was added using 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 | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/resolv/res_comp.c b/resolv/res_comp.c index 1930f17302..16f7e02111 100644 --- a/resolv/res_comp.c +++ b/resolv/res_comp.c @@ -92,19 +92,6 @@ #include <string.h> #include <unistd.h> -/* - * Skip over a compressed domain name. Return the size or -1. - */ -int -dn_skipname(const u_char *ptr, const u_char *eom) { - const u_char *saveptr = ptr; - - if (ns_name_skip(&ptr, eom) == -1) - return (-1); - return (ptr - saveptr); -} -libresolv_hidden_def (dn_skipname) - /* Return true if the string consists of printable ASCII characters only. */ static bool |