summaryrefslogtreecommitdiff
path: root/src/echar
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-21 20:17:03 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-21 20:17:03 +0300
commit8ddb9ad13a1ad2e829a72564ce885896ac5a628b (patch)
treeb706115892a3129dbdbaff0c67e87ae803cecf97 /src/echar
parent07fe5c092d78a40d05a0239c73ba80df14f6fde0 (diff)
downloadevol-hercules-8ddb9ad13a1ad2e829a72564ce885896ac5a628b.tar.gz
evol-hercules-8ddb9ad13a1ad2e829a72564ce885896ac5a628b.tar.bz2
evol-hercules-8ddb9ad13a1ad2e829a72564ce885896ac5a628b.tar.xz
evol-hercules-8ddb9ad13a1ad2e829a72564ce885896ac5a628b.zip
Add missing parameters in config reading functions.
Diffstat (limited to 'src/echar')
-rw-r--r--src/echar/config.c12
-rw-r--r--src/echar/config.h8
2 files changed, 12 insertions, 8 deletions
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;