summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2009-11-13 23:32:04 +0100
committerBjörn Jacke <bj@sernet.de>2009-11-13 23:32:04 +0100
commitec49f28a52a67ba7afc3357d638a1d932cd2b474 (patch)
treed9c2fab8c182cc0c51087c82d47572f30c7a31d9
parent6540804f4022443e09befb9e71d7676e46f2c133 (diff)
downloadsamba-ec49f28a52a67ba7afc3357d638a1d932cd2b474.tar.gz
samba-ec49f28a52a67ba7afc3357d638a1d932cd2b474.tar.bz2
samba-ec49f28a52a67ba7afc3357d638a1d932cd2b474.zip
s3/pam: move variable declaration into belonging ifdef section
This fixes a unused variable 'addr' warning on some platforms
-rw-r--r--source3/auth/pampass.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/auth/pampass.c b/source3/auth/pampass.c
index 4eec269a82..e08670f481 100644
--- a/source3/auth/pampass.c
+++ b/source3/auth/pampass.c
@@ -464,8 +464,8 @@ static bool smb_pam_start(pam_handle_t **pamh, const char *user, const char *rho
int pam_error;
#ifdef PAM_RHOST
const char *our_rhost;
-#endif
char addr[INET6_ADDRSTRLEN];
+#endif
*pamh = (pam_handle_t *)NULL;