summaryrefslogtreecommitdiffstats
path: root/lib/libcurses/setterm.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcurses/setterm.c')
-rw-r--r--lib/libcurses/setterm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libcurses/setterm.c b/lib/libcurses/setterm.c
index 14ce6ee..252c599 100644
--- a/lib/libcurses/setterm.c
+++ b/lib/libcurses/setterm.c
@@ -156,13 +156,13 @@ setterm(type)
ttytype = longname(genbuf, __ttytype);
__usecs =
- (AL == NULL && al == NULL || DL == NULL && dl == NULL) &&
- !NS && (SC != NULL && RC != NULL || HO != NULL) &&
+ ((AL == NULL && al == NULL) || (DL == NULL && dl == NULL)) &&
+ !NS && ((SC != NULL && RC != NULL) || HO != NULL) &&
CS != NULL && (SR != NULL || sr != NULL);
/* If no scrolling commands, no quick change. */
__noqch = !__usecs &&
- (AL == NULL && al == NULL || DL == NULL && dl == NULL);
+ ((AL == NULL && al == NULL) || (DL == NULL && dl == NULL));
return (unknown ? ERR : OK);
}
OpenPOWER on IntegriCloud