From 8ddb9ad13a1ad2e829a72564ce885896ac5a628b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 21 Dec 2015 20:17:03 +0300 Subject: Add missing parameters in config reading functions. --- src/echar/config.c | 12 ++++++++---- src/echar/config.h | 8 ++++---- 2 files changed, 12 insertions(+), 8 deletions(-) (limited to 'src/echar') diff --git a/src/echar/config.c b/src/echar/config.c index 2512a37..96a33d1 100644 --- a/src/echar/config.c +++ b/src/echar/config.c @@ -20,22 +20,26 @@ int max_char_class = 0; int min_look = 0; int max_look = 0; -void config_min_char_class(const char *val) +void config_min_char_class(const char *key __attribute__ ((unused)), + const char *val) { min_char_class = atoi(val); } -void config_max_char_class(const char *val) +void config_max_char_class(const char *key __attribute__ ((unused)), + const char *val) { max_char_class = atoi(val); } -void config_min_look(const char *val) +void config_min_look(const char *key __attribute__ ((unused)), + const char *val) { min_look = atoi(val); } -void config_max_look(const char *val) +void config_max_look(const char *key __attribute__ ((unused)), + const char *val) { max_look = atoi(val); } diff --git a/src/echar/config.h b/src/echar/config.h index d8a4762..4e2f487 100644 --- a/src/echar/config.h +++ b/src/echar/config.h @@ -5,10 +5,10 @@ #define EVOL_CHAR_CONFIG void config_final(void); -void config_min_char_class(const char *val); -void config_max_char_class(const char *val); -void config_min_look(const char *val); -void config_max_look(const char *val); +void config_min_char_class(const char *key, const char *val); +void config_max_char_class(const char *key, const char *val); +void config_min_look(const char *key, const char *val); +void config_max_look(const char *key, const char *val); extern int min_char_class; extern int max_char_class; -- cgit v1.2.3-70-g09d2