summaryrefslogtreecommitdiff
path: root/sys/modules/lua/lua.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/modules/lua/lua.c')
-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 {