Software /
code /
prosody
Comparison
util-src/net.c @ 7969:1c6a07606309
util-src: Specify size of various tables to be allocated
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 09 Mar 2017 01:20:59 +0100 |
parent | 7931:b619b85e01aa |
child | 8426:8b612ec00e4a |
comparison
equal
deleted
inserted
replaced
7968:f0e35f4db9e0 | 7969:1c6a07606309 |
---|---|
132 luaL_Reg exports[] = { | 132 luaL_Reg exports[] = { |
133 { "local_addresses", lc_local_addresses }, | 133 { "local_addresses", lc_local_addresses }, |
134 { NULL, NULL } | 134 { NULL, NULL } |
135 }; | 135 }; |
136 | 136 |
137 lua_newtable(L); | 137 lua_createtable(L, 0, 1); |
138 luaL_setfuncs(L, exports, 0); | 138 luaL_setfuncs(L, exports, 0); |
139 return 1; | 139 return 1; |
140 } | 140 } |