summaryrefslogtreecommitdiffstats
path: root/usr.bin/tset
diff options
context:
space:
mode:
authorbillf <billf@FreeBSD.org>1999-07-04 17:26:16 +0000
committerbillf <billf@FreeBSD.org>1999-07-04 17:26:16 +0000
commit4822432874e997891c75df8d30dcab4c52d1a9fa (patch)
tree6a75551fe39c6d09c4b5991bbb0a4f3d685835fe /usr.bin/tset
parent7c7c72da3801ba6f43e728ff5145b4988674abeb (diff)
downloadFreeBSD-src-4822432874e997891c75df8d30dcab4c52d1a9fa.zip
FreeBSD-src-4822432874e997891c75df8d30dcab4c52d1a9fa.tar.gz
Clean up some ambiguous nested if/elses.
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 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) {
OpenPOWER on IntegriCloud