Coverity CID 5011: #ifdef out unreachable code.

This commit is contained in:
christos 2008-05-24 19:26:14 +00:00
parent 77b766af04
commit da88a5a499
1 changed files with 7 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: lock.c,v 1.28 2008/03/30 15:30:15 lukem Exp $ */
/* $NetBSD: lock.c,v 1.29 2008/05/24 19:26:14 christos Exp $ */
/*
* Copyright (c) 1980, 1987, 1993
@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1987, 1993\n\
#if 0
static char sccsid[] = "@(#)lock.c 8.1 (Berkeley) 6/6/93";
#endif
__RCSID("$NetBSD: lock.c,v 1.28 2008/03/30 15:30:15 lukem Exp $");
__RCSID("$NetBSD: lock.c,v 1.29 2008/05/24 19:26:14 christos Exp $");
#endif /* not lint */
/*
@ -265,6 +265,7 @@ main(int argc, char **argv)
hi(0);
goto tryagain;
}
#ifndef USE_PAM
if (usemine) {
s[strlen(s) - 1] = '\0';
#ifdef SKEY
@ -276,8 +277,10 @@ main(int argc, char **argv)
if (!strcmp(mypw, crypt(s, mypw)))
break;
}
else if (!strcmp(s, s1))
break;
else
#endif
if (!strcmp(s, s1))
break;
(void)printf("\a\n");
tryagain:
if (tcsetattr(STDIN_FILENO, TCSADRAIN, &ntty) == -1