diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2010-10-17 10:39:51 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2010-10-17 10:39:51 +0200 |
commit | ebf94445b9a49318122392d7fc7b098027706d97 (patch) | |
tree | 325f5a9a56fb4607b0531a3501195059b5736c97 /src/gui | |
parent | eff0f9abdb53b0c0e1c2060a6f9598c51347e1bb (diff) | |
download | weechat-ebf94445b9a49318122392d7fc7b098027706d97.zip |
Use const void * for keys and values in some hashtable functions
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/gui-buffer.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gui/gui-buffer.c b/src/gui/gui-buffer.c index f62fc4b2c..bf742b5a7 100644 --- a/src/gui/gui-buffer.c +++ b/src/gui/gui-buffer.c @@ -140,8 +140,7 @@ gui_buffer_local_var_add (struct t_gui_buffer *buffer, const char *name, return; ptr_value = hashtable_get (buffer->local_variables, name); - hashtable_set (buffer->local_variables, - (void *)name, (void *)value); + hashtable_set (buffer->local_variables, name, value); hook_signal_send ((ptr_value) ? "buffer_localvar_changed" : "buffer_localvar_added", WEECHAT_HOOK_SIGNAL_POINTER, buffer); @@ -478,9 +477,8 @@ gui_buffer_new (struct t_weechat_plugin *plugin, NULL, NULL); hashtable_set (new_buffer->local_variables, - "plugin", (void *)plugin_get_name (plugin)); - hashtable_set (new_buffer->local_variables, - "name", (void *)name); + "plugin", plugin_get_name (plugin)); + hashtable_set (new_buffer->local_variables, "name", name); /* add buffer to buffers list */ first_buffer_creation = (gui_buffers == NULL); |