diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2013-10-20 20:07:32 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2013-10-20 20:07:32 +0000 |
commit | 18c58937b130d1a2db44d6c3d473a90949843503 (patch) | |
tree | f3060b2bced081991252774ec62653771951673e /sys/arch/vax/vsa | |
parent | ef62fda8f2253b04886159b1e9107fe71b2627db (diff) |
Use C99 named initializers for struct wsdisplay_accessops fields.
No functional change.
Diffstat (limited to 'sys/arch/vax/vsa')
-rw-r--r-- | sys/arch/vax/vsa/gpx.c | 17 | ||||
-rw-r--r-- | sys/arch/vax/vsa/lcg.c | 17 | ||||
-rw-r--r-- | sys/arch/vax/vsa/lcspx.c | 16 | ||||
-rw-r--r-- | sys/arch/vax/vsa/smg.c | 17 |
4 files changed, 27 insertions, 40 deletions
diff --git a/sys/arch/vax/vsa/gpx.c b/sys/arch/vax/vsa/gpx.c index 39d5e8f94b6..20799080990 100644 --- a/sys/arch/vax/vsa/gpx.c +++ b/sys/arch/vax/vsa/gpx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gpx.c,v 1.21 2009/09/05 14:09:35 miod Exp $ */ +/* $OpenBSD: gpx.c,v 1.22 2013/10/20 20:07:28 miod Exp $ */ /* * Copyright (c) 2006 Miodrag Vallat. * @@ -196,15 +196,12 @@ int gpx_show_screen(void *, void *, int, void gpx_burner(void *, u_int, u_int); const struct wsdisplay_accessops gpx_accessops = { - gpx_ioctl, - gpx_mmap, - gpx_alloc_screen, - gpx_free_screen, - gpx_show_screen, - NULL, /* load_font */ - NULL, /* scrollback */ - NULL, /* getchar */ - gpx_burner + .ioctl = gpx_ioctl, + .mmap = gpx_mmap, + .alloc_screen = gpx_alloc_screen, + .free_screen = gpx_free_screen, + .show_screen = gpx_show_screen, + .burn_screen = gpx_burner }; void gpx_clear_screen(struct gpx_screen *); diff --git a/sys/arch/vax/vsa/lcg.c b/sys/arch/vax/vsa/lcg.c index bf76d69e2a9..596eeb040a3 100644 --- a/sys/arch/vax/vsa/lcg.c +++ b/sys/arch/vax/vsa/lcg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lcg.c,v 1.19 2011/09/19 21:53:02 miod Exp $ */ +/* $OpenBSD: lcg.c,v 1.20 2013/10/20 20:07:28 miod Exp $ */ /* * Copyright (c) 2006 Miodrag Vallat. * @@ -128,15 +128,12 @@ int lcg_show_screen(void *, void *, int, void lcg_burner(void *, u_int, u_int); const struct wsdisplay_accessops lcg_accessops = { - lcg_ioctl, - lcg_mmap, - lcg_alloc_screen, - lcg_free_screen, - lcg_show_screen, - NULL, /* load_font */ - NULL, /* scrollback */ - NULL, /* getchar */ - lcg_burner + .ioctl = lcg_ioctl, + .mmap = lcg_mmap, + .alloc_screen = lcg_alloc_screen, + .free_screen = lcg_free_screen, + .show_screen = lcg_show_screen, + .burn_screen = lcg_burner }; int lcg_alloc_attr(void *, int, int, int, long *); diff --git a/sys/arch/vax/vsa/lcspx.c b/sys/arch/vax/vsa/lcspx.c index f659ee87048..6a39517715b 100644 --- a/sys/arch/vax/vsa/lcspx.c +++ b/sys/arch/vax/vsa/lcspx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lcspx.c,v 1.17 2011/09/20 21:11:33 miod Exp $ */ +/* $OpenBSD: lcspx.c,v 1.18 2013/10/20 20:07:28 miod Exp $ */ /* * Copyright (c) 2006 Miodrag Vallat. * @@ -142,15 +142,11 @@ int lcspx_show_screen(void *, void *, int, void (*) (void *, int, int), void *); const struct wsdisplay_accessops lcspx_accessops = { - lcspx_ioctl, - lcspx_mmap, - lcspx_alloc_screen, - lcspx_free_screen, - lcspx_show_screen, - NULL, /* load_font */ - NULL, /* scrollback */ - NULL, /* getchar */ - NULL /* burner */ + .ioctl = lcspx_ioctl, + .mmap = lcspx_mmap, + .alloc_screen = lcspx_alloc_screen, + .free_screen = lcspx_free_screen, + .show_screen = lcspx_show_screen }; int lcspx_getcmap(struct lcspx_screen *, struct wsdisplay_cmap *); diff --git a/sys/arch/vax/vsa/smg.c b/sys/arch/vax/vsa/smg.c index d8cfec8c4b1..6083ee60720 100644 --- a/sys/arch/vax/vsa/smg.c +++ b/sys/arch/vax/vsa/smg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smg.c,v 1.24 2010/12/26 15:41:00 miod Exp $ */ +/* $OpenBSD: smg.c,v 1.25 2013/10/20 20:07:28 miod Exp $ */ /* $NetBSD: smg.c,v 1.21 2000/03/23 06:46:44 thorpej Exp $ */ /* * Copyright (c) 2006, Miodrag Vallat @@ -182,15 +182,12 @@ int smg_show_screen(void *, void *, int, void smg_burner(void *, u_int, u_int); const struct wsdisplay_accessops smg_accessops = { - smg_ioctl, - smg_mmap, - smg_alloc_screen, - smg_free_screen, - smg_show_screen, - NULL, /* load_font */ - NULL, /* scrollback */ - NULL, /* getchar */ - smg_burner + .ioctl = smg_ioctl, + .mmap = smg_mmap, + .alloc_screen = smg_alloc_screen, + .free_screen = smg_free_screen, + .show_screen = smg_show_screen, + .burn_screen = smg_burner }; void smg_blockmove(struct rasops_info *, u_int, u_int, u_int, u_int, u_int, |