summaryrefslogtreecommitdiff
path: root/sys/dev/rasops/rasops32.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2009-09-05 14:09:36 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2009-09-05 14:09:36 +0000
commitfe97057f16fd1cffc35ca63c0ad5df12f2a7b2df (patch)
tree6bcedac194b240651540f3015081e5826a73f2dd /sys/dev/rasops/rasops32.c
parentcdcddd879b0146dd3a452f32dc53867fce692d9b (diff)
Change the wsdisplay_emulops return types from void to int; emulops will now
return zero on success and nonzero on failure. This commit only performs mechanical changes for the existing emulops to always return zero.
Diffstat (limited to 'sys/dev/rasops/rasops32.c')
-rw-r--r--sys/dev/rasops/rasops32.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/dev/rasops/rasops32.c b/sys/dev/rasops/rasops32.c
index fb299b446b4..7884b9dd094 100644
--- a/sys/dev/rasops/rasops32.c
+++ b/sys/dev/rasops/rasops32.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rasops32.c,v 1.5 2008/06/26 05:42:18 ray Exp $ */
+/* $OpenBSD: rasops32.c,v 1.6 2009/09/05 14:09:35 miod Exp $ */
/* $NetBSD: rasops32.c,v 1.7 2000/04/12 14:22:29 pk Exp $ */
/*-
@@ -38,7 +38,7 @@
#include <dev/wscons/wsconsio.h>
#include <dev/rasops/rasops.h>
-void rasops32_putchar(void *, int, int, u_int, long);
+int rasops32_putchar(void *, int, int, u_int, long);
/*
* Initialize a 'rasops_info' descriptor for this depth.
@@ -63,7 +63,7 @@ rasops32_init(ri)
/*
* Paint a single character.
*/
-void
+int
rasops32_putchar(cookie, row, col, uc, attr)
void *cookie;
int row, col;
@@ -80,10 +80,10 @@ rasops32_putchar(cookie, row, col, uc, attr)
#ifdef RASOPS_CLIPPING
/* Catches 'row < 0' case too */
if ((unsigned)row >= (unsigned)ri->ri_rows)
- return;
+ return 0;
if ((unsigned)col >= (unsigned)ri->ri_cols)
- return;
+ return 0;
#endif
rp = (int32_t *)(ri->ri_bits + row*ri->ri_yscale + col*ri->ri_xscale);
@@ -128,4 +128,6 @@ rasops32_putchar(cookie, row, col, uc, attr)
while (width--)
*rp++ = clr[1];
}
+
+ return 0;
}