summaryrefslogtreecommitdiff
path: root/sys/dev/wscons/wsdisplay.c
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2020-05-25 09:55:50 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2020-05-25 09:55:50 +0000
commit9e5735df00975584d6cf6bc08dbd76eabfee6fac (patch)
treeb53b6f9533ffd09189205a870c4acea54dbed001 /sys/dev/wscons/wsdisplay.c
parent2c743ea363c5f913f013bb5b9402bcbea962c0a3 (diff)
change wsdisplay attribute type from long to uint32_t
miod explained it was initially a long as it was thought drivers may need to allocate storage but in practice they don't need more than 32 bits for an attribute. suggested and reviewed by miod@
Diffstat (limited to 'sys/dev/wscons/wsdisplay.c')
-rw-r--r--sys/dev/wscons/wsdisplay.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/wscons/wsdisplay.c b/sys/dev/wscons/wsdisplay.c
index ba5dd0bfae3..00b2baf236d 100644
--- a/sys/dev/wscons/wsdisplay.c
+++ b/sys/dev/wscons/wsdisplay.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wsdisplay.c,v 1.140 2020/05/25 06:45:26 jsg Exp $ */
+/* $OpenBSD: wsdisplay.c,v 1.141 2020/05/25 09:55:49 jsg Exp $ */
/* $NetBSD: wsdisplay.c,v 1.82 2005/02/27 00:27:52 perry Exp $ */
/*
@@ -133,7 +133,7 @@ struct wsscreen {
};
struct wsscreen *wsscreen_attach(struct wsdisplay_softc *, int, const char *,
- const struct wsscreen_descr *, void *, int, int, long);
+ const struct wsscreen_descr *, void *, int, int, uint32_t);
void wsscreen_detach(struct wsscreen *);
int wsdisplay_addscreen(struct wsdisplay_softc *, int, const char *,
const char *);
@@ -267,7 +267,7 @@ int wsdisplay_clearonclose;
struct wsscreen *
wsscreen_attach(struct wsdisplay_softc *sc, int console, const char *emul,
const struct wsscreen_descr *type, void *cookie, int ccol, int crow,
- long defattr)
+ uint32_t defattr)
{
struct wsscreen_internal *dconf;
struct wsscreen *scr;
@@ -368,7 +368,7 @@ wsdisplay_addscreen(struct wsdisplay_softc *sc, int idx,
int error;
void *cookie;
int ccol, crow;
- long defattr;
+ uint32_t defattr;
struct wsscreen *scr;
int s;
@@ -803,7 +803,7 @@ wsdisplay_common_attach(struct wsdisplay_softc *sc, int console, int kbdmux,
void
wsdisplay_cnattach(const struct wsscreen_descr *type, void *cookie, int ccol,
- int crow, long defattr)
+ int crow, uint32_t defattr)
{
const struct wsemul_ops *wsemul;
const struct wsdisplay_emulops *emulops;
@@ -2671,7 +2671,7 @@ inverse_char(struct wsscreen *scr, u_int pos)
int fg, bg, ul;
int flags;
int tmp;
- long attr;
+ uint32_t attr;
GETCHAR(scr, pos, &cell);