diff options
author | Bill Fumerola <billf@FreeBSD.org> | 1999-07-04 17:26:16 +0000 |
---|---|---|
committer | Bill Fumerola <billf@FreeBSD.org> | 1999-07-04 17:26:16 +0000 |
commit | 9ef5c48befdfa36ad5ef5e0ae898e7ca9397abcc (patch) | |
tree | b5a6ada1388aeb7553694b736fde6dc7d114dbff /usr.bin/ftp | |
parent | adbaeacdd6ef7704c5427e2ed81c4364d91c6e07 (diff) | |
download | src-9ef5c48befdfa36ad5ef5e0ae898e7ca9397abcc.tar.gz src-9ef5c48befdfa36ad5ef5e0ae898e7ca9397abcc.zip |
Clean up some ambiguous nested if/elses.
Notes
Notes:
svn path=/head/; revision=48566
Diffstat (limited to 'usr.bin/ftp')
-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 bc19f621a474..c0e7f95cbea6 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")) && |