mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 04:43:34 +02:00
added some pointer casting to get rid of warnings with some compilers.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2365 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
f8221db7ca
commit
33d30268b4
6 changed files with 26 additions and 22 deletions
|
|
@ -68,7 +68,7 @@ void statusbar_item_register(const char *name, const char *value,
|
|||
if (func != NULL) {
|
||||
if (g_hash_table_lookup(sbar_item_funcs, name) == NULL) {
|
||||
g_hash_table_insert(sbar_item_funcs,
|
||||
g_strdup(name), func);
|
||||
g_strdup(name), (void *) func);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -859,7 +859,8 @@ SBAR_ITEM_REC *statusbar_item_create(STATUSBAR_REC *bar,
|
|||
rec->bar = bar;
|
||||
rec->config = config;
|
||||
|
||||
rec->func = g_hash_table_lookup(sbar_item_funcs, config->name);
|
||||
rec->func = (STATUSBAR_FUNC) g_hash_table_lookup(sbar_item_funcs,
|
||||
config->name);
|
||||
if (rec->func == NULL)
|
||||
rec->func = statusbar_item_default_func;
|
||||
statusbar_item_default_signals(rec);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue