diff options
author | Timo Sirainen <cras@irssi.org> | 2000-05-09 11:42:42 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-05-09 11:42:42 +0000 |
commit | 93d603215114093b92837df0604c5fe285cc04a6 (patch) | |
tree | f128c498946922199a426d46574612b22c539f66 /src/core/special-vars.c | |
parent | 90ff30fcd01cd15323a6d2d5fd9797660021b475 (diff) | |
download | irssi-93d603215114093b92837df0604c5fe285cc04a6.zip |
- Compiling fixes
- GNOME version isn't anymore build here so you don't need all that GTK and
GNOME crap to compile irssi-text.
- Some fixes to compile with -ansi -pedantic
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@200 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core/special-vars.c')
-rw-r--r-- | src/core/special-vars.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/special-vars.c b/src/core/special-vars.c index 26788a65..7d51bca1 100644 --- a/src/core/special-vars.c +++ b/src/core/special-vars.c @@ -108,7 +108,7 @@ static char *get_long_variable_value(const char *key, void *server, void *item, *free_ret = FALSE; /* expando? */ - func = g_hash_table_lookup(expandos, key); + func = (EXPANDO_FUNC) g_hash_table_lookup(expandos, key); if (func != NULL) return func(server, item, free_ret); @@ -502,7 +502,7 @@ void expando_create(const char *key, EXPANDO_FUNC func) g_free(origkey); g_hash_table_remove(expandos, key); } - g_hash_table_insert(expandos, g_strdup(key), func); + g_hash_table_insert(expandos, g_strdup(key), (void *) func); } /* Destroy expando */ |