summaryrefslogtreecommitdiff
path: root/src/fe-text/statusbar.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-02-01 20:14:30 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-02-01 20:14:30 +0000
commit33d30268b4dd7f5afe174d54f3f7e13459633348 (patch)
treed6a428619f51ad9cc219041f807a5589c39fe1e0 /src/fe-text/statusbar.c
parentf8221db7ca38a7ecca599c45dc70d70f1038b566 (diff)
downloadirssi-33d30268b4dd7f5afe174d54f3f7e13459633348.zip
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
Diffstat (limited to 'src/fe-text/statusbar.c')
-rw-r--r--src/fe-text/statusbar.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fe-text/statusbar.c b/src/fe-text/statusbar.c
index 75aec846..a9271b3c 100644
--- a/src/fe-text/statusbar.c
+++ b/src/fe-text/statusbar.c
@@ -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);