diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2011-09-23 09:30:19 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2011-09-23 09:30:19 +0200 |
commit | 867bad2d72d0122d897b18614b7d5ed8e41fcc4d (patch) | |
tree | ba8f9ff3da8d0fc600e29d1b156a668a3925b6bc | |
parent | 83a7305bae5c2a88740fd7e2936ee3ddc52423f0 (diff) | |
download | weechat-867bad2d72d0122d897b18614b7d5ed8e41fcc4d.zip |
irc: remove compilation warning about function pointer
-rw-r--r-- | src/plugins/irc/irc-config.c | 7 | ||||
-rw-r--r-- | src/plugins/irc/irc-config.h | 7 |
2 files changed, 10 insertions, 4 deletions
diff --git a/src/plugins/irc/irc-config.c b/src/plugins/irc/irc-config.c index 6763f9e94..66c2c9b0a 100644 --- a/src/plugins/irc/irc-config.c +++ b/src/plugins/irc/irc-config.c @@ -1262,9 +1262,12 @@ irc_config_server_new_option (struct t_config_file *config_file, const char *default_value, const char *value, int null_value_allowed, - void *callback_check_value, + int (*callback_check_value)(void *data, + struct t_config_option *option, + const char *value), void *callback_check_value_data, - void *callback_change, + void (*callback_change)(void *data, + struct t_config_option *option), void *callback_change_data) { struct t_config_option *new_option; diff --git a/src/plugins/irc/irc-config.h b/src/plugins/irc/irc-config.h index 7b072f08e..4dd024551 100644 --- a/src/plugins/irc/irc-config.h +++ b/src/plugins/irc/irc-config.h @@ -168,9 +168,12 @@ struct t_config_option *irc_config_server_new_option (struct t_config_file *conf const char *default_value, const char *value, int null_value_allowed, - void *callback_check_value, + int (*callback_check_value)(void *data, + struct t_config_option *option, + const char *value), void *callback_check_value_data, - void *callback_change, + void (*callback_change)(void *data, + struct t_config_option *option), void *callback_change_data); extern int irc_config_init (); extern int irc_config_read (); |