s3/pam: move variable declaration into belonging ifdef section
authorBjörn Jacke <bj@sernet.de>
Fri, 13 Nov 2009 22:32:04 +0000 (23:32 +0100)
committerBjörn Jacke <bj@sernet.de>
Fri, 13 Nov 2009 22:32:04 +0000 (23:32 +0100)
This fixes a unused variable 'addr' warning on some platforms

source3/auth/pampass.c

index 4eec269a82c9cfb7687940e406967d742632a838..e08670f481751add0301463e3dd77afc325f9bb5 100644 (file)
@@ -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;