diff options
Diffstat (limited to 'sys/dev/ic/vga.c')
-rw-r--r-- | sys/dev/ic/vga.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/vga.c b/sys/dev/ic/vga.c index 35d8bb8083c..05d5d7b1ff6 100644 --- a/sys/dev/ic/vga.c +++ b/sys/dev/ic/vga.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vga.c,v 1.35 2004/12/25 23:58:14 miod Exp $ */ +/* $OpenBSD: vga.c,v 1.36 2004/12/26 21:22:13 miod Exp $ */ /* $NetBSD: vga.c,v 1.28.2.1 2000/06/30 16:27:47 simonb Exp $ */ /* @@ -649,7 +649,7 @@ vga_alloc_screen(v, type, cookiep, curxp, curyp, defattrp) * for the first one too. * XXX We could be more clever and use video RAM. */ - vc->screens.lh_first->pcs.mem = + LIST_FIRST(&vc->screens)->pcs.mem = malloc(type->ncols * type->nrows * 2, M_DEVBUF, M_WAITOK); } @@ -689,7 +689,7 @@ vga_free_screen(v, cookie) * removes backing store for the last one */ if (vc->nscreens == 1) - free(vc->screens.lh_first->pcs.mem, M_DEVBUF); + free(LIST_FIRST(&vc->screens)->pcs.mem, M_DEVBUF); /* Last screen has no backing store */ if (vc->nscreens != 0) |