Remove non-public interfaces from resolv_netid.h
This is a first sanitization pass for the only header that should really
be exported by this library.
Test: m netd
Change-Id: I53507e7d43ec1696075034844bcbfce5799f4f2d
diff --git a/resolv/gethnamaddr.cpp b/resolv/gethnamaddr.cpp
index c77d40d..5c4874d 100644
--- a/resolv/gethnamaddr.cpp
+++ b/resolv/gethnamaddr.cpp
@@ -148,6 +148,8 @@
static struct hostent* android_gethostbyaddrfornetcontext_proxy_internal(
const void*, socklen_t, int, struct hostent*, char*, size_t, int*,
const struct android_net_context*);
+static struct hostent* android_gethostbyaddrfornetcontext_proxy(
+ const void* addr, socklen_t len, int af, const struct android_net_context* netcontext);
static int h_errno_to_result(int* herrno_p) {
// glibc considers ERANGE a special case (and BSD uses ENOSPC instead).
@@ -1080,7 +1082,7 @@
return android_gethostbyaddrfornetcontext_proxy(addr, len, af, netcontext);
}
-struct hostent* android_gethostbyaddrfornetcontext_proxy(
+static struct hostent* android_gethostbyaddrfornetcontext_proxy(
const void* addr, socklen_t len, int af, const struct android_net_context* netcontext) {
struct res_static* rs = __res_get_static(); // For thread-safety.
return android_gethostbyaddrfornetcontext_proxy_internal(