diff options
author | Uri Simchoni <uri@samba.org> | 2017-11-19 13:04:58 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2017-11-22 10:20:21 +0100 |
commit | 90508f46c0a57a632a64300d97c636112d3e8fb7 (patch) | |
tree | 4e15399af3d188641282bc2ba1305117e7003ae9 /lib | |
parent | e973ac06431183b25cecf61053f3a23c91b88de6 (diff) | |
download | samba-90508f46c0a57a632a64300d97c636112d3e8fb7.tar.gz |
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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pam_wrapper/pam_wrapper.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/pam_wrapper/pam_wrapper.c b/lib/pam_wrapper/pam_wrapper.c index 4be81460a5b..03584beb95e 100644 --- a/lib/pam_wrapper/pam_wrapper.c +++ b/lib/pam_wrapper/pam_wrapper.c @@ -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, |