From ec49f28a52a67ba7afc3357d638a1d932cd2b474 Mon Sep 17 00:00:00 2001 From: Björn Jacke Date: Fri, 13 Nov 2009 23:32:04 +0100 Subject: s3/pam: move variable declaration into belonging ifdef section This fixes a unused variable 'addr' warning on some platforms --- source3/auth/pampass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') 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; -- cgit