From 53b3577e9929fd304f55af622f5be2f4b32b19d4 Mon Sep 17 00:00:00 2001 From: Haru Date: Tue, 11 Nov 2014 00:42:28 +0100 Subject: Corrected some uninitialized interface functions - Detected through the just merged validation tool, special thanks to Andrei Karas. - Added validation tool to the Travis tests. Signed-off-by: Haru --- .travis.yml | 3 ++- src/common/conf.c | 1 + src/map/pc.h | 3 --- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index a7f6a789f..fe43d9b70 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,7 +12,8 @@ before_script: - ./travis.sh importdb ragnarok travis - mysql -u root -e "SET PASSWORD FOR 'travis'@'localhost' = PASSWORD('travis');" -script: +script: + - cd tools && ./validateinterfaces.py silent - ./travis.sh build $CONFIGURE_FLAGS - ./travis.sh test ragnarok travis travis diff --git a/src/common/conf.c b/src/common/conf.c index 46a034497..34d1cacbf 100644 --- a/src/common/conf.c +++ b/src/common/conf.c @@ -146,6 +146,7 @@ void libconfig_defaults(void) { /* */ libconfig->setting_set_int = config_setting_set_int; libconfig->setting_set_int64 = config_setting_set_int64; + libconfig->setting_set_float = config_setting_set_float; libconfig->setting_set_bool = config_setting_set_bool; libconfig->setting_set_string = config_setting_set_string; /* */ diff --git a/src/map/pc.h b/src/map/pc.h index e613feec5..b7a0b099c 100644 --- a/src/map/pc.h +++ b/src/map/pc.h @@ -780,9 +780,6 @@ struct pc_interface { struct map_session_data* (*get_dummy_sd) (void); int (*class2idx) (int class_); - //int (*getrefinebonus) (int lv,int type); FIXME: This function does not exist, nor it is ever called - bool (*can_give_items) (struct map_session_data *sd); - bool (*can_give_bound_items) (struct map_session_data *sd); bool (*can_talk) (struct map_session_data *sd); bool (*can_attack) ( struct map_session_data *sd, int target_id ); -- cgit v1.2.3-70-g09d2