[5/7] nss_db: Use NSS_DECLARE_MODULE_FUNCTIONS

Message ID 977f5ffca9e97adedcd9025198dd9c5071d52f9b.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.
---
 nss/nss_db/db-init.c       | 2 ++
 nss/nss_db/db-initgroups.c | 1 -
 nss/nss_db/nss_db.h        | 1 +
 3 files changed, 3 insertions(+), 1 deletion(-)

-- 
2.24.1

Patch

diff --git a/nss/nss_db/db-init.c b/nss/nss_db/db-init.c
index 1ba5b70dfd..6f48b821f3 100644
--- a/nss/nss_db/db-init.c
+++ b/nss/nss_db/db-init.c
@@ -22,6 +22,8 @@ 
 #include <nscd/nscd.h>
 #include <string.h>
 
+#include "nss_db.h"
+
 #define PWD_FILENAME (_PATH_VARDB "passwd.db")
 define_traced_file (pwd, PWD_FILENAME);
 
diff --git a/nss/nss_db/db-initgroups.c b/nss/nss_db/db-initgroups.c
index 0ea81c90bb..a8c39d68d9 100644
--- a/nss/nss_db/db-initgroups.c
+++ b/nss/nss_db/db-initgroups.c
@@ -32,7 +32,6 @@ 
 /* The hashing function we use.  */
 #include "../intl/hash-string.h"
 
-
 enum nss_status
 _nss_db_initgroups_dyn (const char *user, gid_t group, long int *start,
 			long int *size, gid_t **groupsp, long int limit,
diff --git a/nss/nss_db/nss_db.h b/nss/nss_db/nss_db.h
index 24942f5ec9..e354909c58 100644
--- a/nss/nss_db/nss_db.h
+++ b/nss/nss_db/nss_db.h
@@ -23,6 +23,7 @@ 
 #include <stdint.h>
 #include <libc-lock.h>
 
+NSS_DECLARE_MODULE_FUNCTIONS (db)
 
 /* String table index type.  */
 typedef uint32_t stridx_t;