aboutsummaryrefslogtreecommitdiff
path: root/nss
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-02-12 11:47:26 +0100
committerFlorian Weimer <fweimer@redhat.com>2020-02-13 09:14:51 +0100
commit7e3987ab54ffc66477af50d461d7ddfd5b4a8813 (patch)
tree442cdf0b1aeeb2baae474ea21644a971ed129601 /nss
parentff104359639db9748abf4690febc07e9d917b11f (diff)
downloadglibc-7e3987ab54ffc66477af50d461d7ddfd5b4a8813.tar
glibc-7e3987ab54ffc66477af50d461d7ddfd5b4a8813.tar.gz
glibc-7e3987ab54ffc66477af50d461d7ddfd5b4a8813.tar.bz2
glibc-7e3987ab54ffc66477af50d461d7ddfd5b4a8813.zip
nss_db: Use NSS_DECLARE_MODULE_FUNCTIONS
Reviewed-by: DJ Delorie <dj@redhat.com>
Diffstat (limited to 'nss')
-rw-r--r--nss/nss_db/db-init.c2
-rw-r--r--nss/nss_db/db-initgroups.c1
-rw-r--r--nss/nss_db/nss_db.h1
3 files changed, 3 insertions, 1 deletions
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;