summaryrefslogtreecommitdiffhomepage
path: root/libs/luci-lib-nixio/src/file.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-06-16 17:27:01 +0200
committerGitHub <noreply@github.com>2020-06-16 17:27:01 +0200
commitd1134c1a40692e0151e71c9b6ce1d5e07f2ddbcd (patch)
treedece122600eee910b1c7ecf20e91318b861cb03d /libs/luci-lib-nixio/src/file.c
parent2ced86048c7006f3637ed38ceeb3d21fddbb93e2 (diff)
parent6c0b8a40f7938c027953bd4c650a02e8aad77861 (diff)
Merge pull request #3676 from Tarnyko/master
luci-lib-nixio: allow building with Lua5.2/LuaJIT
Diffstat (limited to 'libs/luci-lib-nixio/src/file.c')
-rw-r--r--libs/luci-lib-nixio/src/file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/luci-lib-nixio/src/file.c b/libs/luci-lib-nixio/src/file.c
index cfa35dfd17..91468a258a 100644
--- a/libs/luci-lib-nixio/src/file.c
+++ b/libs/luci-lib-nixio/src/file.c
@@ -379,7 +379,7 @@ static int nixio_file__tostring(lua_State *L) {
}
/* method table */
-static const luaL_reg M[] = {
+static const luaL_Reg M[] = {
{"write", nixio_file_write},
{"read", nixio_file_read},
{"tell", nixio_file_tell},
@@ -394,7 +394,7 @@ static const luaL_reg M[] = {
};
/* module table */
-static const luaL_reg R[] = {
+static const luaL_Reg R[] = {
{"dup", nixio_dup},
{"open", nixio_open},
{"open_flags", nixio_open_flags},