summaryrefslogtreecommitdiff
path: root/usr.bin/window/wwgets.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/wwgets.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/wwgets.c')
-rw-r--r--usr.bin/window/wwgets.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/window/wwgets.c b/usr.bin/window/wwgets.c
index c83edd3c17d..43fc69b8d6b 100644
--- a/usr.bin/window/wwgets.c
+++ b/usr.bin/window/wwgets.c
@@ -1,4 +1,4 @@
-/* $NetBSD: wwgets.c,v 1.5 1995/09/29 00:44:10 cgd Exp $ */
+/* $NetBSD: wwgets.c,v 1.6 1996/02/08 20:45:08 mycroft Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -40,7 +40,7 @@
#if 0
static char sccsid[] = "@(#)wwgets.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$NetBSD: wwgets.c,v 1.5 1995/09/29 00:44:10 cgd Exp $";
+static char rcsid[] = "$NetBSD: wwgets.c,v 1.6 1996/02/08 20:45:08 mycroft Exp $";
#endif
#endif /* not lint */
@@ -54,11 +54,11 @@ int n;
register struct ww *w;
{
register char *p = buf;
- register char c;
- char uc = w->ww_unctrl;
+ register int c;
+ int uc = ISSET(w->ww_wflags, WWW_UNCTRL);
static void rub();
- w->ww_unctrl = 0;
+ CLR(w->ww_wflags, WWW_UNCTRL);
for (;;) {
wwcurtowin(w);
while ((c = wwgetc()) < 0)
@@ -102,7 +102,7 @@ register struct ww *w;
}
}
*p = 0;
- w->ww_unctrl = uc;
+ SET(w->ww_wflags, uc);
}
static void