summaryrefslogtreecommitdiff
path: root/usr.bin/window/wwsize.c
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1996-02-23 14:10:59 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1996-02-23 14:10:59 +0000
commit788935aae6a144972fa10842f9031274539ea15b (patch)
tree674bae9f7be243ff2c0b5081323ea26178135c04 /usr.bin/window/wwsize.c
parenta1af50e492a0fe75c1d06ee538abb365947fb218 (diff)
Minor cleanup for 8-bit cleanliness. From der Mouse, PR 1322.
Eliminate the use of char variables for holding booleans. Compress struct ww somewhat. Make ww_index and related variables explicitly unsigned.
Diffstat (limited to 'usr.bin/window/wwsize.c')
-rw-r--r--usr.bin/window/wwsize.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/window/wwsize.c b/usr.bin/window/wwsize.c
index a135cb43f6a..1ec4b520148 100644
--- a/usr.bin/window/wwsize.c
+++ b/usr.bin/window/wwsize.c
@@ -1,4 +1,4 @@
-/* $NetBSD: wwsize.c,v 1.4 1995/12/21 10:46:28 mycroft Exp $ */
+/* $NetBSD: wwsize.c,v 1.5 1996/02/08 20:45:11 mycroft Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -40,7 +40,7 @@
#if 0
static char sccsid[] = "@(#)wwsize.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$NetBSD: wwsize.c,v 1.4 1995/12/21 10:46:28 mycroft Exp $";
+static char rcsid[] = "$NetBSD: wwsize.c,v 1.5 1996/02/08 20:45:11 mycroft Exp $";
#endif
#endif /* not lint */
@@ -174,8 +174,8 @@ register struct ww *w;
/*
* Put cursor back.
*/
- if (w->ww_hascursor) {
- w->ww_hascursor = 0;
+ if (ISSET(w->ww_wflags, WWW_HASCURSOR)) {
+ CLR(w->ww_wflags, WWW_HASCURSOR);
wwcursor(w, 1);
}
/*