summaryrefslogtreecommitdiff
path: root/sys/dev/isa
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/isa
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/isa')
-rw-r--r--sys/dev/isa/ega.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/isa/ega.c b/sys/dev/isa/ega.c
index 2790cb02c52..4338661533a 100644
--- a/sys/dev/isa/ega.c
+++ b/sys/dev/isa/ega.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ega.c,v 1.14 2009/08/12 15:58:31 miod Exp $ */
+/* $OpenBSD: ega.c,v 1.15 2009/09/05 14:09:35 miod Exp $ */
/* $NetBSD: ega.c,v 1.4.4.1 2000/06/30 16:27:47 simonb Exp $ */
/*
@@ -113,7 +113,7 @@ static void ega_init(struct ega_config *,
static void ega_setfont(struct ega_config *, struct egascreen *);
static int ega_alloc_attr(void *, int, int, int, long *);
static void ega_unpack_attr(void *, long, int *, int *, int *);
-void ega_copyrows(void *, int, int, int);
+int ega_copyrows(void *, int, int, int);
struct cfattach ega_ca = {
sizeof(struct ega_softc), ega_match, ega_attach,
@@ -925,7 +925,7 @@ ega_unpack_attr(id, attr, fg, bg, ul)
*fg += 8;
}
-void
+int
ega_copyrows(id, srcrow, dstrow, nrows)
void *id;
int srcrow, dstrow, nrows;
@@ -977,4 +977,6 @@ ega_copyrows(id, srcrow, dstrow, nrows)
} else
bcopy(&scr->pcs.mem[srcoff], &scr->pcs.mem[dstoff],
nrows * ncols * 2);
+
+ return 0;
}