diff options
Diffstat (limited to 'sys/arch/hp300/dev/diofb.c')
-rw-r--r-- | sys/arch/hp300/dev/diofb.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/arch/hp300/dev/diofb.c b/sys/arch/hp300/dev/diofb.c index a408c05493d..c3159e5b9b5 100644 --- a/sys/arch/hp300/dev/diofb.c +++ b/sys/arch/hp300/dev/diofb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: diofb.c,v 1.9 2006/03/12 22:22:39 miod Exp $ */ +/* $OpenBSD: diofb.c,v 1.10 2006/03/12 22:52:59 miod Exp $ */ /* * Copyright (c) 2005, Miodrag Vallat @@ -300,7 +300,6 @@ diofb_end_attach(void *sc, struct wsdisplay_accessops *accessops, struct diofb *fb, int console, const char *descr) { struct wsemuldisplaydev_attach_args waa; - struct wsscreen_descr *scrlist[1]; printf(": %dx%d", fb->dwidth, fb->dheight); @@ -313,9 +312,9 @@ diofb_end_attach(void *sc, struct wsdisplay_accessops *accessops, printf(" %s", descr); printf(" frame buffer\n"); - scrlist[0] = &fb->wsd; + fb->scrlist[0] = &fb->wsd; fb->wsl.nscreens = 1; - fb->wsl.screens = (const struct wsscreen_descr **)scrlist; + fb->wsl.screens = (const struct wsscreen_descr **)fb->scrlist; waa.console = console; waa.scrdata = &fb->wsl; |