nss_compat: Use NSS_DECLARE_MODULE_FUNCTIONS

Reviewed-by: DJ Delorie <dj@redhat.com>
This commit is contained in:
Florian Weimer 2020-02-12 11:47:13 +01:00
parent 6978700688
commit ff10435963
4 changed files with 8 additions and 0 deletions

View File

@ -27,6 +27,8 @@
#include <libc-lock.h>
#include <kernel-features.h>
NSS_DECLARE_MODULE_FUNCTIONS (compat)
static service_user *ni;
static enum nss_status (*setgrent_impl) (int stayopen);
static enum nss_status (*getgrnam_r_impl) (const char *name,

View File

@ -30,6 +30,8 @@
#include <kernel-features.h>
#include <scratch_buffer.h>
NSS_DECLARE_MODULE_FUNCTIONS (compat)
static service_user *ni;
static enum nss_status (*initgroups_dyn_impl) (const char *, gid_t,
long int *, long int *,

View File

@ -31,6 +31,8 @@
#include "netgroup.h"
#include "nisdomain.h"
NSS_DECLARE_MODULE_FUNCTIONS (compat)
static service_user *ni;
static enum nss_status (*setpwent_impl) (int stayopen);
static enum nss_status (*getpwnam_r_impl) (const char *name,

View File

@ -31,6 +31,8 @@
#include "netgroup.h"
#include "nisdomain.h"
NSS_DECLARE_MODULE_FUNCTIONS (compat)
static service_user *ni;
static enum nss_status (*setspent_impl) (int stayopen);
static enum nss_status (*getspnam_r_impl) (const char *name, struct spwd * sp,