aboutsummaryrefslogtreecommitdiffstats
path: root/util-src
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-03-02 00:46:32 +0100
committerKim Alvefur <zash@zash.se>2017-03-02 00:46:32 +0100
commitdb1a8151988bbdba535201b6e1313c41d29e2a3f (patch)
tree623c83858c1e07c0a682fa9475cda36164f07c38 /util-src
parent49d55538f7e519139a2edc20e2bd428d4cb0ad94 (diff)
downloadprosody-db1a8151988bbdba535201b6e1313c41d29e2a3f.tar.gz
prosody-db1a8151988bbdba535201b6e1313c41d29e2a3f.zip
Backed out changeset a3a4ed0d34f4 C99 is ok
Diffstat (limited to 'util-src')
-rw-r--r--util-src/table.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/util-src/table.c b/util-src/table.c
index 0e547858..f1cd9e12 100644
--- a/util-src/table.c
+++ b/util-src/table.c
@@ -7,12 +7,11 @@ static int Lcreate_table(lua_State *L) {
}
static int Lpack(lua_State *L) {
- int arg;
unsigned int n_args = lua_gettop(L);
lua_createtable(L, n_args, 1);
lua_insert(L, 1);
- for(arg = n_args; arg >= 1; arg--) {
+ for(int arg = n_args; arg >= 1; arg--) {
lua_rawseti(L, 1, arg);
}