- (djm) Avoid auth2-chall.c warning when compiling without

PAM, BSD_AUTH and SKEY
This commit is contained in:
Damien Miller 2003-05-26 21:36:13 +10:00
parent 9155a681fd
commit a6a7c19dcb
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,7 @@
20030526
- (djm) Avoid auth2-chall.c warning when compiling without
PAM, BSD_AUTH and SKEY
20030525 20030525
- (djm) OpenBSD CVS Sync - (djm) OpenBSD CVS Sync
- djm@cvs.openbsd.org 2003/05/24 09:02:22 - djm@cvs.openbsd.org 2003/05/24 09:02:22
@ -1614,4 +1618,4 @@
save auth method before monitor_reset_key_state(); bugzilla bug #284; save auth method before monitor_reset_key_state(); bugzilla bug #284;
ok provos@ ok provos@
$Id: ChangeLog,v 1.2751 2003/05/25 04:38:33 djm Exp $ $Id: ChangeLog,v 1.2752 2003/05/26 11:36:13 djm Exp $

View File

@ -326,6 +326,9 @@ input_userauth_info_response(int type, u_int32_t seq, void *ctxt)
void void
privsep_challenge_enable(void) privsep_challenge_enable(void)
{ {
#if defined(BSD_AUTH) || defined(USE_PAM) || defined(SKEY)
int n = 0;
#endif
#ifdef BSD_AUTH #ifdef BSD_AUTH
extern KbdintDevice mm_bsdauth_device; extern KbdintDevice mm_bsdauth_device;
#endif #endif
@ -335,7 +338,6 @@ privsep_challenge_enable(void)
#ifdef SKEY #ifdef SKEY
extern KbdintDevice mm_skey_device; extern KbdintDevice mm_skey_device;
#endif #endif
int n = 0;
#ifdef BSD_AUTH #ifdef BSD_AUTH
devices[n++] = &mm_bsdauth_device; devices[n++] = &mm_bsdauth_device;