- (djm) Avoid auth2-chall.c warning when compiling without
PAM, BSD_AUTH and SKEY
diff --git a/auth2-chall.c b/auth2-chall.c
index 12e3cc9..aacbf0b 100644
--- a/auth2-chall.c
+++ b/auth2-chall.c
@@ -326,6 +326,9 @@
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 @@
#ifdef SKEY
extern KbdintDevice mm_skey_device;
#endif
- int n = 0;
#ifdef BSD_AUTH
devices[n++] = &mm_bsdauth_device;