aboutsummaryrefslogtreecommitdiffstats
path: root/util-src/windows.c
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-09-17 02:23:17 +0200
committerKim Alvefur <zash@zash.se>2014-09-17 02:23:17 +0200
commit110fb5576b604fdff69dd7d6cedeec4fee7fe361 (patch)
treecc0d784c48dd70d272897cbf4cc39ceed6c3479e /util-src/windows.c
parentbcab7a928a24ff7da693c6c8370ab18ae19284bd (diff)
downloadprosody-110fb5576b604fdff69dd7d6cedeec4fee7fe361.tar.gz
prosody-110fb5576b604fdff69dd7d6cedeec4fee7fe361.zip
util-src/*.c: Use the more concise lua_setfield
Diffstat (limited to 'util-src/windows.c')
-rw-r--r--util-src/windows.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/util-src/windows.c b/util-src/windows.c
index 9b79c662..a209539f 100644
--- a/util-src/windows.c
+++ b/util-src/windows.c
@@ -83,8 +83,7 @@ static const luaL_Reg Reg[] =
LUALIB_API int luaopen_util_windows(lua_State *L) {
lua_newtable(L);
luaL_register(L, NULL, Reg);
- lua_pushliteral(L, "version"); /** version */
lua_pushliteral(L, "-3.14");
- lua_settable(L,-3);
+ lua_setfield(L, -2, "version");
return 1;
}