summaryrefslogtreecommitdiff
path: root/usr.bin/tset
diff options
context:
space:
mode:
authorBill Fumerola <billf@FreeBSD.org>1999-07-04 17:26:16 +0000
committerBill Fumerola <billf@FreeBSD.org>1999-07-04 17:26:16 +0000
commit9ef5c48befdfa36ad5ef5e0ae898e7ca9397abcc (patch)
treeb5a6ada1388aeb7553694b736fde6dc7d114dbff /usr.bin/tset
parentadbaeacdd6ef7704c5427e2ed81c4364d91c6e07 (diff)
downloadsrc-test-9ef5c48befdfa36ad5ef5e0ae898e7ca9397abcc.tar.gz
src-test-9ef5c48befdfa36ad5ef5e0ae898e7ca9397abcc.zip
Clean up some ambiguous nested if/elses.
Notes
Notes: svn path=/head/; revision=48566
Diffstat (limited to 'usr.bin/tset')
-rw-r--r--usr.bin/tset/term.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/tset/term.c b/usr.bin/tset/term.c
index 714ef65155418..f64b86944176e 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) {