1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-25 20:36:38 +02:00

Use const void * for keys and values in some hashtable functions

This commit is contained in:
Sebastien Helleu
2010-10-17 10:39:51 +02:00
parent eff0f9abdb
commit ebf94445b9
11 changed files with 34 additions and 34 deletions
+2 -2
View File
@@ -131,8 +131,8 @@ weechat_lua_tohashtable (lua_State *interpreter, int index, int hashtable_size)
while (lua_next (interpreter, index - 1) != 0)
{
weechat_hashtable_set (hashtable,
(char *)lua_tostring (interpreter, -2),
(char *)lua_tostring (interpreter, -1));
lua_tostring (interpreter, -2),
lua_tostring (interpreter, -1));
/* remove value from stack (keep key for next iteration) */
lua_pop (interpreter, 1);
}