summaryrefslogtreecommitdiff
path: root/sys/dev/rcons/rcons_kern.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-14 06:22:36 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-14 06:22:36 +0000
commitb89bbbe579d3fc7a669fa8f7716d1c3b7468db61 (patch)
tree748a2d0818c5ab2c6cf58c009da67b865979c594 /sys/dev/rcons/rcons_kern.c
parente02b3f5aa9c6fa8276491de78f1f08032d57fbbc (diff)
from netbsd:
Make it work on little-endian monochrome buffers; per Ted. Must change `u_long' to `u_int32_t' as Jason pointed out. since 'long's in this code are meant to be exactly 32-bits wide, use 'int32_t's instead, so that this code is usable on the alpha.
Diffstat (limited to 'sys/dev/rcons/rcons_kern.c')
-rw-r--r--sys/dev/rcons/rcons_kern.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/rcons/rcons_kern.c b/sys/dev/rcons/rcons_kern.c
index a2f5fe0ea87..49768997c67 100644
--- a/sys/dev/rcons/rcons_kern.c
+++ b/sys/dev/rcons/rcons_kern.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rcons_kern.c,v 1.2 1995/10/04 23:57:25 pk Exp $ */
+/* $NetBSD: rcons_kern.c,v 1.3 1995/11/29 22:09:23 pk Exp $ */
/*
* Copyright (c) 1991, 1993
@@ -185,7 +185,7 @@ rcons_init(rc)
return;
}
rp->linelongs = rc->rc_linebytes >> 2;
- rp->pixels = (u_long *)rc->rc_pixels;
+ rp->pixels = (u_int32_t *)rc->rc_pixels;
rc->rc_ras_blank = RAS_CLEAR;