about summary refs log tree commit diff
path: root/include/netdb.h
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-02-25 16:15:09 +0100
committerFlorian Weimer <fweimer@redhat.com>2020-02-25 16:15:09 +0100
commitd423e17031f379d51c5ad6c33e8b57380c8eea35 (patch)
tree9511953dc53ed9600e5680901749efa1917875d2 /include/netdb.h
parent783e641fbae0cd1ab32d278216247a6f793dd722 (diff)
downloadglibc-d423e17031f379d51c5ad6c33e8b57380c8eea35.tar.gz
glibc-d423e17031f379d51c5ad6c33e8b57380c8eea35.tar.xz
glibc-d423e17031f379d51c5ad6c33e8b57380c8eea35.zip
nss_nis: Use NSS_DECLARE_MODULE_FUNCTIONS
This commit removes the minor optimization based on strong aliases
because it loses type safety.
Diffstat (limited to 'include/netdb.h')
-rw-r--r--include/netdb.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/netdb.h b/include/netdb.h
index e230b1f4fc..3c78da60c5 100644
--- a/include/netdb.h
+++ b/include/netdb.h
@@ -279,7 +279,8 @@ extern enum nss_status _nss_ ## service ## _getnetbyname_r		      \
 extern enum nss_status _nss_ ## service ## _getnetbyaddr_r		      \
 		       (uint32_t addr, int type, struct netent *net,	      \
 			char *buffer, size_t buflen, int *errnop,	      \
-			int *herrnop);
+			int *herrnop);					      \
+extern enum nss_status _nss_ ## service ## _endspent (void);
 
 DECLARE_NSS_PROTOTYPES (compat)
 DECLARE_NSS_PROTOTYPES (dns)
@@ -289,6 +290,11 @@ DECLARE_NSS_PROTOTYPES (nis)
 DECLARE_NSS_PROTOTYPES (nisplus)
 
 #undef DECLARE_NSS_PROTOTYPES
+
+libnss_nis_hidden_proto (_nss_nis_endhostent)
+libnss_nis_hidden_proto (_nss_nis_endnetent)
+libnss_nis_hidden_proto (_nss_nis_endspent)
+
 #endif
 
 #endif /* !_NETDB_H */