diff options
author | Kim Alvefur <zash@zash.se> | 2014-09-17 02:23:17 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2014-09-17 02:23:17 +0200 |
commit | 110fb5576b604fdff69dd7d6cedeec4fee7fe361 (patch) | |
tree | cc0d784c48dd70d272897cbf4cc39ceed6c3479e /util-src/hashes.c | |
parent | bcab7a928a24ff7da693c6c8370ab18ae19284bd (diff) | |
download | prosody-110fb5576b604fdff69dd7d6cedeec4fee7fe361.tar.gz prosody-110fb5576b604fdff69dd7d6cedeec4fee7fe361.zip |
util-src/*.c: Use the more concise lua_setfield
Diffstat (limited to 'util-src/hashes.c')
-rw-r--r-- | util-src/hashes.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/util-src/hashes.c b/util-src/hashes.c index 7ca00867..39ab5180 100644 --- a/util-src/hashes.c +++ b/util-src/hashes.c @@ -205,8 +205,7 @@ LUALIB_API int luaopen_util_hashes(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; } |