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/tset/term.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/tset/term.c')
-rw-r--r-- | usr.bin/tset/term.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/tset/term.c b/usr.bin/tset/term.c index 714ef65..f64b869 100644 --- a/usr.bin/tset/term.c +++ b/usr.bin/tset/term.c @@ -36,7 +36,7 @@ static char sccsid[] = "@(#)term.c 8.1 (Berkeley) 6/9/93"; #endif static const char rcsid[] = - "$Id$"; + "$Id: term.c,v 1.2 1997/08/18 07:27:56 charnier Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -104,11 +104,12 @@ found: if ((p = getenv("TERMCAP")) != NULL && *p != '/') * ttype now contains a pointer to the type of the terminal. * If the first character is '?', ask the user. */ - if (ttype[0] == '?') + if (ttype[0] == '?') { if (ttype[1] != '\0') ttype = askuser(ttype + 1); else ttype = askuser(NULL); + } /* Find the termcap entry. If it doesn't exist, ask the user. */ while ((rval = tgetent(tbuf, ttype)) == 0) { |