summaryrefslogtreecommitdiff
path: root/support.c
diff options
context:
space:
mode:
authorPhilip Prindeville <philipp@redfish-solutions.com>2018-01-03 11:56:23 -0700
committerGitHub <noreply@github.com>2018-01-03 11:56:23 -0700
commit4c0616f2f0f6f7f24a265d46c861da006e4c3175 (patch)
tree217a58c81029484ea5914bebfd2834b05d5e5d0d /support.c
parent42ce91f24a4961a5b6a08c0f0938248d099454b2 (diff)
parent22d1e39948304e5852325088cf04c74deba53fa4 (diff)
downloadpam_tacplus-4c0616f2f0f6f7f24a265d46c861da006e4c3175.tar.gz
pam_tacplus-4c0616f2f0f6f7f24a265d46c861da006e4c3175.zip
Merge pull request #106 from pprindeville/alt-fix-for-unused
Fix 'unused' warnings when building with clang/llvm
Diffstat (limited to 'support.c')
-rw-r--r--support.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/support.c b/support.c
index 2406b32..ad45580 100644
--- a/support.c
+++ b/support.c
@@ -109,14 +109,12 @@ int converse(pam_handle_t * pamh, int nargs, const struct pam_message *message,
}
/* stolen from pam_stress */
-int tacacs_get_password (pam_handle_t * pamh, int flags,
+int tacacs_get_password (pam_handle_t * pamh, int flags __Unused,
int ctrl, char **password) {
const void *pam_pass;
char *pass = NULL;
- flags = flags; /* unused */
-
if (ctrl & PAM_TAC_DEBUG)
syslog (LOG_DEBUG, "%s: called", __FUNCTION__);