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 | 08d4a98070c4c4f69c6d04f483d105121effba08 (patch) | |
tree | 8385e0e0976dbef1d62a28cb7dca51bbf47e3331 /include/arpa/nameser.h | |
parent | 17d0407a5cac70652f3544e59505c1712b36fd1a (diff) | |
download | glibc-08d4a98070c4c4f69c6d04f483d105121effba08.tar.gz glibc-08d4a98070c4c4f69c6d04f483d105121effba08.tar.xz glibc-08d4a98070c4c4f69c6d04f483d105121effba08.zip |
resolv: Move ns_makecanon into its own file, and into libc
But only as an internal symbol, __libc_ns_makecanon. The libresolv ABI is preserved. This is because the function is deprecated, and it does not make sense to add new symbol versions for deprecated functions. Also reformat the implementation to GNU style. Reviewed-by: Carlos O'Donell <carlos@redhat.com> Tested-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'include/arpa/nameser.h')
-rw-r--r-- | include/arpa/nameser.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/arpa/nameser.h b/include/arpa/nameser.h index eff25178c8..a529cc86d3 100644 --- a/include/arpa/nameser.h +++ b/include/arpa/nameser.h @@ -69,9 +69,10 @@ libresolv_hidden_proto (ns_sprintrr) libresolv_hidden_proto (ns_sprintrrf) libresolv_hidden_proto (ns_samedomain) libresolv_hidden_proto (ns_samename) -libresolv_hidden_proto (ns_makecanon) libresolv_hidden_proto (ns_format_ttl) +extern __typeof (ns_makecanon) __libc_ns_makecanon; +libc_hidden_proto (__libc_ns_makecanon) extern __typeof (ns_name_compress) __ns_name_compress; libc_hidden_proto (__ns_name_compress) extern __typeof (ns_name_ntop) __ns_name_ntop; |