diff options
author | billf <billf@FreeBSD.org> | 1999-07-04 17:26:16 +0000 |
---|---|---|
committer | billf <billf@FreeBSD.org> | 1999-07-04 17:26:16 +0000 |
commit | 4822432874e997891c75df8d30dcab4c52d1a9fa (patch) | |
tree | 6a75551fe39c6d09c4b5991bbb0a4f3d685835fe /usr.bin/ftp/ruserpass.c | |
parent | 7c7c72da3801ba6f43e728ff5145b4988674abeb (diff) | |
download | FreeBSD-src-4822432874e997891c75df8d30dcab4c52d1a9fa.zip FreeBSD-src-4822432874e997891c75df8d30dcab4c52d1a9fa.tar.gz |
Clean up some ambiguous nested if/elses.
Diffstat (limited to 'usr.bin/ftp/ruserpass.c')
-rw-r--r-- | usr.bin/ftp/ruserpass.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/ftp/ruserpass.c b/usr.bin/ftp/ruserpass.c index bc19f62..c0e7f95 100644 --- a/usr.bin/ftp/ruserpass.c +++ b/usr.bin/ftp/ruserpass.c @@ -1,4 +1,4 @@ -/* $Id$ */ +/* $Id: ruserpass.c,v 1.7 1997/12/13 20:38:20 pst Exp $ */ /* $NetBSD: ruserpass.c,v 1.14.2.1 1997/11/18 01:02:05 mellon Exp $ */ /* @@ -39,7 +39,7 @@ #if 0 static char sccsid[] = "@(#)ruserpass.c 8.4 (Berkeley) 4/27/95"; #else -__RCSID("$Id$"); +__RCSID("$Id: ruserpass.c,v 1.7 1997/12/13 20:38:20 pst Exp $"); __RCSID_SOURCE("$NetBSD: ruserpass.c,v 1.14.2.1 1997/11/18 01:02:05 mellon Exp $"); #endif #endif /* not lint */ @@ -149,7 +149,7 @@ next: while ((t = token()) && t != MACH && t != DEFAULT) switch(t) { case LOGIN: - if (token()) + if (token()) { if (*aname == NULL) { *aname = strdup(tokval); if (*aname == NULL) @@ -158,6 +158,7 @@ next: if (strcmp(*aname, tokval)) goto next; } + } break; case PASSWD: if ((*aname == NULL || strcmp(*aname, "anonymous")) && |