From 407989421afa9f7de410e3ddc51de42bc6744b9d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20Jacke?= Date: Fri, 13 Nov 2009 23:32:04 +0100 Subject: [PATCH] s3/pam: move variable declaration into belonging ifdef section This fixes a unused variable 'addr' warning on some platforms (cherry picked from commit 8549feed3f343c3280173335f240b4e7be12328f) --- source3/auth/pampass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/auth/pampass.c b/source3/auth/pampass.c index 4eec269a82c..e08670f4817 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; -- 2.11.4.GIT