From 867bad2d72d0122d897b18614b7d5ed8e41fcc4d Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Fri, 23 Sep 2011 09:30:19 +0200 Subject: irc: remove compilation warning about function pointer --- src/plugins/irc/irc-config.c | 7 +++++-- src/plugins/irc/irc-config.h | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) (limited to 'src/plugins/irc') 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 (); -- cgit v1.2.3