From: Art Cancro Date: Sat, 25 Apr 2015 03:46:33 +0000 (-0400) Subject: Move location of variable declaration to silence warning X-Git-Tag: Release_902~168^2 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=6420052874cd23030b27457c1245b1bf54468e01 Move location of variable declaration to silence warning --- diff --git a/citadel/auth.c b/citadel/auth.c index 07f4e9fa7..74fa9ebc3 100644 --- a/citadel/auth.c +++ b/citadel/auth.c @@ -104,19 +104,19 @@ int validate_password(uid_t uid, const char *pass) #endif struct passwd *pw; int retval = 0; - int flags = 0; - -#ifdef PAM_DATA_SILENT - flags = PAM_DATA_SILENT; -#else - flags = 0; -#endif /* PAM_DATA_SILENT */ if ((pw = getpwuid(uid)) == NULL) { return retval; } #ifdef HAVE_PAM_START + +#ifdef PAM_DATA_SILENT + int flags = PAM_DATA_SILENT; +#else + int flags = 0; +#endif /* PAM_DATA_SILENT */ + pc.conv = conv; pc.appdata_ptr = &data; data.name = pw->pw_name;