diff options
author | Timo Sirainen <cras@irssi.org> | 2002-02-01 20:14:30 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-02-01 20:14:30 +0000 |
commit | 33d30268b4dd7f5afe174d54f3f7e13459633348 (patch) | |
tree | d6a428619f51ad9cc219041f807a5589c39fe1e0 /src/core | |
parent | f8221db7ca38a7ecca599c45dc70d70f1038b566 (diff) | |
download | irssi-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/core')
-rw-r--r-- | src/core/commands.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/core/commands.c b/src/core/commands.c index f066d674..9764a135 100644 --- a/src/core/commands.c +++ b/src/core/commands.c @@ -83,7 +83,7 @@ static COMMAND_MODULE_REC *command_module_find_func(COMMAND_REC *rec, for (tmp = rec->modules; tmp != NULL; tmp = tmp->next) { COMMAND_MODULE_REC *rec = tmp->data; - if (g_slist_find(rec->signals, func) != NULL) + if (g_slist_find(rec->signals, (void *) func) != NULL) return rec; } @@ -150,7 +150,7 @@ void command_bind_to(const char *module, int pos, const char *cmd, } modrec = command_module_get(rec, module, protocol); - modrec->signals = g_slist_append(modrec->signals, func); + modrec->signals = g_slist_append(modrec->signals, (void *) func); if (func != NULL) { str = g_strconcat("command ", cmd, NULL); @@ -226,7 +226,8 @@ void command_unbind(const char *cmd, SIGNAL_FUNC func) modrec = command_module_find_func(rec, func); g_return_if_fail(modrec != NULL); - modrec->signals = g_slist_remove(modrec->signals, func); + modrec->signals = + g_slist_remove(modrec->signals, (void *) func); if (modrec->signals == NULL) command_module_destroy(rec, modrec); } @@ -764,7 +765,7 @@ static void command_module_unbind_all(COMMAND_REC *rec, for (tmp = modrec->signals; tmp != NULL; tmp = next) { next = tmp->next; - command_unbind(rec->cmd, tmp->data); + command_unbind(rec->cmd, (SIGNAL_FUNC) tmp->data); } if (g_slist_find(commands, rec) != NULL) { |