Remove __LIBC_HIDDEN__
Now that we're hiding all symbols, there's no point in hand-picking
which ones to hide.
Test: atest netd_integration_test
Change-Id: Id88f10cb4c8e25635b6f4c94118a6b3a27b14cb5
diff --git a/resolv/res_data.cpp b/resolv/res_data.cpp
index 45c311a..80aa908 100644
--- a/resolv/res_data.cpp
+++ b/resolv/res_data.cpp
@@ -35,7 +35,6 @@
#include "res_private.h" // res_ourserver_p()
#include "resolv_private.h"
-__LIBC_HIDDEN__
extern const char* const _res_opcodes[] = {
"QUERY", "IQUERY", "CQUERYM", "CQUERYU", /* experimental */
"NOTIFY", /* experimental */
@@ -84,18 +83,17 @@
return rv;
}
-void p_query(const u_char* msg) {
- fp_query(msg, stdout);
+static void fp_nquery(const u_char* msg, int len, FILE* file) {
+ if (res_need_init() && res_init() == -1) return;
+ res_pquery(&_nres, msg, len, file);
}
-void fp_query(const u_char* msg, FILE* file) {
+static void fp_query(const u_char* msg, FILE* file) {
fp_nquery(msg, PACKETSZ, file);
}
-void fp_nquery(const u_char* msg, int len, FILE* file) {
- if (res_need_init() && res_init() == -1) return;
-
- res_pquery(&_nres, msg, len, file);
+void p_query(const u_char* msg) {
+ fp_query(msg, stdout);
}
int res_mkquery(int op, // opcode of query