From a6a7c19dcbd96553b63b7524490e3528bd726ed8 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Mon, 26 May 2003 21:36:13 +1000 Subject: - (djm) Avoid auth2-chall.c warning when compiling without PAM, BSD_AUTH and SKEY --- auth2-chall.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'auth2-chall.c') diff --git a/auth2-chall.c b/auth2-chall.c index 12e3cc93..aacbf0bc 100644 --- a/auth2-chall.c +++ b/auth2-chall.c @@ -326,6 +326,9 @@ input_userauth_info_response(int type, u_int32_t seq, void *ctxt) void privsep_challenge_enable(void) { +#if defined(BSD_AUTH) || defined(USE_PAM) || defined(SKEY) + int n = 0; +#endif #ifdef BSD_AUTH extern KbdintDevice mm_bsdauth_device; #endif @@ -335,7 +338,6 @@ privsep_challenge_enable(void) #ifdef SKEY extern KbdintDevice mm_skey_device; #endif - int n = 0; #ifdef BSD_AUTH devices[n++] = &mm_bsdauth_device; -- cgit v1.2.3