diff options
| author | Peter Wemm <peter@FreeBSD.org> | 2001-06-13 10:58:39 +0000 |
|---|---|---|
| committer | Peter Wemm <peter@FreeBSD.org> | 2001-06-13 10:58:39 +0000 |
| commit | f41325db5f16640212574a03b9a34e5ed4a884ca (patch) | |
| tree | 88aef8097c80f09c2f725d61b6da4d433a595a61 /sys/dev/syscons/scvidctl.c | |
| parent | f3a6406c668744d1692c960352110b9b4c7ea9a6 (diff) | |
Notes
Diffstat (limited to 'sys/dev/syscons/scvidctl.c')
| -rw-r--r-- | sys/dev/syscons/scvidctl.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/syscons/scvidctl.c b/sys/dev/syscons/scvidctl.c index be9d1e66f30d..72dc7db13045 100644 --- a/sys/dev/syscons/scvidctl.c +++ b/sys/dev/syscons/scvidctl.c @@ -40,6 +40,8 @@ #include <dev/fb/fbreg.h> #include <dev/syscons/syscons.h> +SET_DECLARE(scrndr_set, const sc_renderer_t); + /* for compatibility with previous versions */ /* 3.0-RELEASE used the following structure */ typedef struct old_video_adapter { @@ -803,8 +805,8 @@ sc_rndr_sw_t } } } else { - list = (const sc_renderer_t **)scrndr_set.ls_items; - while ((p = *list++) != NULL) { + SET_FOREACH(list, scrndr_set) { + p = *list; if ((strcmp(p->name, name) == 0) && (mode == p->mode)) { scp->status &= |
