summaryrefslogtreecommitdiff
path: root/sys/modules/lua
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2014-03-16 05:20:22 +0000
committerdholland <dholland@NetBSD.org>2014-03-16 05:20:22 +0000
commit76258fa0fe68b72536361d37e7b733d8bb10b786 (patch)
treee8334d8baca3ac8a5d20fc7647d104a782381607 /sys/modules/lua
parent1ccd73de606f245b810e292b6739d955a4f27d56 (diff)
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.
Diffstat (limited to 'sys/modules/lua')
-rw-r--r--sys/modules/lua/lua.c15
1 files changed, 12 insertions, 3 deletions
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 <mbalmer@NetBSD.org>.
@@ -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 {