nss_db: Use NSS_DECLARE_MODULE_FUNCTIONS
authorFlorian Weimer <fweimer@redhat.com>
Wed, 12 Feb 2020 10:47:26 +0000 (11:47 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 13 Feb 2020 08:14:51 +0000 (09:14 +0100)
Reviewed-by: DJ Delorie <dj@redhat.com>
nss/nss_db/db-init.c
nss/nss_db/db-initgroups.c
nss/nss_db/nss_db.h

index 1ba5b70dfdb06aabd6bd513334c3676ea0a2a890..6f48b821f3abd9860dc0f4dbacdf890c70ae5094 100644 (file)
@@ -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);
 
index 0ea81c90bba67a4c5f3f111e886b998a5f659b9b..a8c39d68d9b55b945cf19eaedb6a57851a0658f1 100644 (file)
@@ -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,
index 24942f5ec91f991da2c2e4789a3e301559be97d7..e354909c58732382a9377d63dcf8830ea1f0662f 100644 (file)
@@ -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;