From 4881aebb111bc2d0d70facfa2c7eb9880a2fba09 Mon Sep 17 00:00:00 2001 From: djm Date: Mon, 26 May 2003 11:36:13 +0000 Subject: [PATCH] - (djm) Avoid auth2-chall.c warning when compiling without PAM, BSD_AUTH and SKEY --- ChangeLog | 4 ++++ auth2-chall.c | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b6bbc71e..d8988c82 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +20030526 + - (djm) Avoid auth2-chall.c warning when compiling without + PAM, BSD_AUTH and SKEY + 20030525 - (djm) OpenBSD CVS Sync - djm@cvs.openbsd.org 2003/05/24 09:02:22 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; -- 2.45.1