[PATCH v2 2.39 1/7] resolv: Declare __p_class_syms, __p_type_syms for internal use

Jaipaul Cheernam <[email protected]>
Newsgroups gmane.comp.lib.glibc.alpha
Message-ID <[email protected]>
From: Florian Weimer <[email protected]>

Reviewed-by: Carlos O'Donell <[email protected]>
Reviewed-by: Adhemerval Zanella <[email protected]>
(cherry picked from commit 360f352c9a6da545d798ef3015e73ca114f0d230)
Signed-off-by: Jaipaul Cheernam <[email protected]>
---
 include/resolv.h   | 5 +++++
 resolv/res_debug.c | 4 ----
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/include/resolv.h b/include/resolv.h
index 4dbbac3800..d5ad9994b9 100644
--- a/include/resolv.h
+++ b/include/resolv.h
@@ -70,6 +70,11 @@ libc_hidden_proto (__libc_res_nameinquery)
 extern __typeof (__res_queriesmatch) __libc_res_queriesmatch;
 libc_hidden_proto (__libc_res_queriesmatch)
 
+extern const struct res_sym __p_class_syms[];
+libresolv_hidden_proto (__p_class_syms)
+extern const struct res_sym __p_type_syms[];
+libresolv_hidden_proto (__p_type_syms)
+
 /* Variant of res_hnok which operates on binary (but uncompressed) names.  */
 bool __res_binary_hnok (const unsigned char *dn) attribute_hidden;
 
diff --git a/resolv/res_debug.c b/resolv/res_debug.c
index dab5283bbf..6f03e41432 100644
--- a/resolv/res_debug.c
+++ b/resolv/res_debug.c
@@ -389,8 +389,6 @@ p_fqname(const u_char *cp, const u_char *msg, FILE *file) {
  * that C_ANY is a qclass but not a class.  (You can ask for records of class
  * C_ANY, but you can't have any records of that class in the database.)
  */
-extern const struct res_sym __p_class_syms[];
-libresolv_hidden_proto (__p_class_syms)
 const struct res_sym __p_class_syms[] = {
   {C_IN,    (char *) "IN"},
   {C_CHAOS, (char *) "CHAOS"},
@@ -425,8 +423,6 @@ const struct res_sym __p_update_section_syms[] attribute_hidden = {
  * Names of RR types and qtypes.  The list is incomplete because its
  * size is part of the ABI.
  */
-extern const struct res_sym __p_type_syms[];
-libresolv_hidden_proto (__p_type_syms)
 const struct res_sym __p_type_syms[] = {
   {ns_t_a,      (char *) "A",     (char *) "address"},
   {ns_t_ns,     (char *) "NS",    (char *) "name server"},
-- 
2.34.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.