]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
resolv: Declare __p_class_syms, __p_type_syms for internal use
authorFlorian Weimer <fweimer@redhat.com>
Fri, 19 Jun 2026 16:22:20 +0000 (18:22 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 19 Jun 2026 16:22:20 +0000 (18:22 +0200)
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
include/resolv.h
resolv/res_debug.c

index 4dbbac3800b7ef302c8c93eb1cb3855c5a1c3d83..d5ad9994b93ac21b4a7aa894bdde67d88620d6ac 100644 (file)
@@ -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;
 
index 73af0c72fec1960f00000c7bf966fffb6ce0e2f7..6bf9962916a4ea6c148c2ce886f415cbdb797981 100644 (file)
@@ -390,8 +390,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"},
@@ -426,8 +424,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"},