[7/7] nss_dns: Use NSS_DECLARE_MODULE_FUNCTIONS

Message ID bf0041b252ee744229fd2ee672af1402ba70db5a.1581517927.git.fweimer@redhat.com
State New
Headers show
Series
  • More type safety for NSS modules
Related show

Commit Message

Florian Weimer Feb. 12, 2020, 2:34 p.m.
---
 resolv/nss_dns/dns-canon.c   | 2 ++
 resolv/nss_dns/dns-host.c    | 2 ++
 resolv/nss_dns/dns-network.c | 2 ++
 3 files changed, 6 insertions(+)

-- 
2.24.1

Patch

diff --git a/resolv/nss_dns/dns-canon.c b/resolv/nss_dns/dns-canon.c
index 0849c04dbe..5bcd16958e 100644
--- a/resolv/nss_dns/dns-canon.c
+++ b/resolv/nss_dns/dns-canon.c
@@ -26,6 +26,8 @@ 
 #include <resolv/resolv_context.h>
 #include <resolv/resolv-internal.h>
 
+NSS_DECLARE_MODULE_FUNCTIONS (dns)
+
 #if PACKETSZ > 65536
 # define MAXPACKET	PACKETSZ
 #else
diff --git a/resolv/nss_dns/dns-host.c b/resolv/nss_dns/dns-host.c
index fe90328175..91c0a3b0e4 100644
--- a/resolv/nss_dns/dns-host.c
+++ b/resolv/nss_dns/dns-host.c
@@ -90,6 +90,8 @@ 
 #include <resolv/mapv4v6addr.h>
 #include <resolv/mapv4v6hostent.h>
 
+NSS_DECLARE_MODULE_FUNCTIONS (dns)
+
 #define RESOLVSORT
 
 #if PACKETSZ > 65536
diff --git a/resolv/nss_dns/dns-network.c b/resolv/nss_dns/dns-network.c
index 906a3a6b06..250e7e7187 100644
--- a/resolv/nss_dns/dns-network.c
+++ b/resolv/nss_dns/dns-network.c
@@ -70,6 +70,8 @@ 
 #include <resolv/resolv-internal.h>
 #include <resolv/resolv_context.h>
 
+NSS_DECLARE_MODULE_FUNCTIONS (dns)
+
 /* Maximum number of aliases we allow.  */
 #define MAX_NR_ALIASES	48