From fe97057f16fd1cffc35ca63c0ad5df12f2a7b2df Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Sat, 5 Sep 2009 14:09:36 +0000 Subject: 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. --- sys/dev/isa/ega.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sys/dev/isa') 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; } -- cgit v1.2.3