summaryrefslogtreecommitdiff
path: root/sys/arch/sgi/dev
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2013-10-20 20:07:32 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2013-10-20 20:07:32 +0000
commit18c58937b130d1a2db44d6c3d473a90949843503 (patch)
treef3060b2bced081991252774ec62653771951673e /sys/arch/sgi/dev
parentef62fda8f2253b04886159b1e9107fe71b2627db (diff)
Use C99 named initializers for struct wsdisplay_accessops fields.
No functional change.
Diffstat (limited to 'sys/arch/sgi/dev')
-rw-r--r--sys/arch/sgi/dev/gbe.c18
-rw-r--r--sys/arch/sgi/dev/impact.c17
2 files changed, 13 insertions, 22 deletions
diff --git a/sys/arch/sgi/dev/gbe.c b/sys/arch/sgi/dev/gbe.c
index fec3fc5ed20..1ce185a10a4 100644
--- a/sys/arch/sgi/dev/gbe.c
+++ b/sys/arch/sgi/dev/gbe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gbe.c,v 1.19 2013/05/30 16:15:01 deraadt Exp $ */
+/* $OpenBSD: gbe.c,v 1.20 2013/10/20 20:07:24 miod Exp $ */
/*
* Copyright (c) 2007, 2008, 2009 Joel Sing <jsing@openbsd.org>
@@ -151,16 +151,12 @@ struct wsscreen_descr gbe_stdscreen = {
};
struct wsdisplay_accessops gbe_accessops = {
- gbe_ioctl,
- gbe_mmap,
- gbe_alloc_screen,
- gbe_free_screen,
- gbe_show_screen,
- NULL, /* load_font */
- NULL, /* scrollback */
- NULL, /* getchar */
- gbe_burner,
- NULL /* pollc */
+ .ioctl = gbe_ioctl,
+ .mmap = gbe_mmap,
+ .alloc_screen = gbe_alloc_screen,
+ .free_screen = gbe_free_screen,
+ .show_screen = gbe_show_screen,
+ .burn_screen = gbe_burner
};
const struct wsscreen_descr *gbe_scrlist[] = {
diff --git a/sys/arch/sgi/dev/impact.c b/sys/arch/sgi/dev/impact.c
index 6084a52e272..748f117880a 100644
--- a/sys/arch/sgi/dev/impact.c
+++ b/sys/arch/sgi/dev/impact.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: impact.c,v 1.3 2013/06/11 18:15:55 deraadt Exp $ */
+/* $OpenBSD: impact.c,v 1.4 2013/10/20 20:07:24 miod Exp $ */
/*
* Copyright (c) 2010, 2012 Miodrag Vallat.
@@ -122,16 +122,11 @@ int impact_show_screen(void *, void *, int, void (*)(void *, int, int),
static struct impact_screen impact_cons;
struct wsdisplay_accessops impact_accessops = {
- impact_ioctl,
- impact_mmap,
- impact_alloc_screen,
- impact_free_screen,
- impact_show_screen,
- NULL, /* load_font */
- NULL, /* scrollback */
- NULL, /* getchar */
- NULL, /* burner */
- NULL /* pollc */
+ .ioctl = impact_ioctl,
+ .mmap = impact_mmap,
+ .alloc_screen = impact_alloc_screen,
+ .free_screen = impact_free_screen,
+ .show_screen = impact_show_screen
};
int