mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
pam_wrapper: #ifdef-out unused functions
When pam_vsyslog is not available, avoid building functions that are being used to wrap it, in order to avoid picky compiler warnings. Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
e973ac0643
commit
90508f46c0
@ -508,6 +508,7 @@ static const char *libpam_pam_strerror(pam_handle_t *pamh, int errnum)
|
||||
return pwrap.libpam.symbols._libpam_pam_strerror.f(discard_const_p(pam_handle_t, pamh), errnum);
|
||||
}
|
||||
|
||||
#if defined(HAVE_PAM_VSYSLOG) || defined(HAVE_PAM_SYSLOG)
|
||||
static void libpam_pam_vsyslog(const pam_handle_t *pamh,
|
||||
int priority,
|
||||
const char *fmt,
|
||||
@ -522,6 +523,7 @@ static void libpam_pam_vsyslog(const pam_handle_t *pamh,
|
||||
args);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
/*********************************************************
|
||||
* PWRAP INIT
|
||||
@ -1487,6 +1489,8 @@ const char *pam_strerror(pam_handle_t *pamh, int errnum)
|
||||
errnum);
|
||||
}
|
||||
|
||||
#if defined(HAVE_PAM_VSYSLOG) || defined(HAVE_PAM_SYSLOG)
|
||||
|
||||
static void pwrap_pam_vsyslog(const pam_handle_t *pamh,
|
||||
int priority,
|
||||
const char *fmt,
|
||||
@ -1533,6 +1537,7 @@ static void pwrap_pam_vsyslog(const pam_handle_t *pamh,
|
||||
|
||||
pwrap_vlog(dbglvl, syslog_str, fmt, args);
|
||||
}
|
||||
#endif /* defined(HAVE_PAM_VSYSLOG) || defined(HAVE_PAM_SYSLOG) */
|
||||
|
||||
#ifdef HAVE_PAM_VSYSLOG
|
||||
void pam_vsyslog(const pam_handle_t *pamh,
|
||||
|
Loading…
x
Reference in New Issue
Block a user