From 76258fa0fe68b72536361d37e7b733d8bb10b786 Mon Sep 17 00:00:00 2001 From: dholland Date: Sun, 16 Mar 2014 05:20:22 +0000 Subject: Change (mostly mechanically) every cdevsw/bdevsw I can find to use designated initializers. I have not built every extant kernel so I have probably broken at least one build; however I've also found and fixed some wrong cdevsw/bdevsw entries so even if so I think we come out ahead. --- sys/modules/lua/lua.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'sys/modules/lua') diff --git a/sys/modules/lua/lua.c b/sys/modules/lua/lua.c index 1b0a21afceb..e910a9672fa 100644 --- a/sys/modules/lua/lua.c +++ b/sys/modules/lua/lua.c @@ -1,4 +1,4 @@ -/* $NetBSD: lua.c,v 1.7 2014/02/25 18:30:12 pooka Exp $ */ +/* $NetBSD: lua.c,v 1.8 2014/03/16 05:20:30 dholland Exp $ */ /* * Copyright (c) 2011, 2013 by Marc Balmer . @@ -92,8 +92,17 @@ dev_type_close(luaclose); dev_type_ioctl(luaioctl); const struct cdevsw lua_cdevsw = { - luaopen, luaclose, noread, nowrite, luaioctl, nostop, notty, - nopoll, nommap, nokqfilter, D_OTHER | D_MPSAFE + .d_open = luaopen, + .d_close = luaclose, + .d_read = noread, + .d_write = nowrite, + .d_ioctl = luaioctl, + .d_stop = nostop, + .d_tty = notty, + .d_poll = nopoll, + .d_mmap = nommap, + .d_kqfilter = nokqfilter, + .d_flag = D_OTHER | D_MPSAFE }; struct lua_loadstate { -- cgit