diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-12-21 20:17:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-12-21 20:17:03 +0300 |
commit | 8ddb9ad13a1ad2e829a72564ce885896ac5a628b (patch) | |
tree | b706115892a3129dbdbaff0c67e87ae803cecf97 /src/ecommon | |
parent | 07fe5c092d78a40d05a0239c73ba80df14f6fde0 (diff) | |
download | evol-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/ecommon')
-rw-r--r-- | src/ecommon/config.c | 9 | ||||
-rw-r--r-- | src/ecommon/config.h | 6 |
2 files changed, 9 insertions, 6 deletions
diff --git a/src/ecommon/config.c b/src/ecommon/config.c index 572510b..6bc7205 100644 --- a/src/ecommon/config.c +++ b/src/ecommon/config.c @@ -20,17 +20,20 @@ const char *default_map = NULL; int default_x = 0; int default_y = 0; -void config_default_map(const char *val) +void config_default_map(const char *key __attribute__ ((unused)), + const char *val) { mapindex->default_map = aStrdup(val); } -void config_default_x(const char *val) +void config_default_x(const char *key __attribute__ ((unused)), + const char *val) { mapindex->default_x = atoi(val); } -void config_default_y(const char *val) +void config_default_y(const char *key __attribute__ ((unused)), + const char *val) { mapindex->default_y = atoi(val); } diff --git a/src/ecommon/config.h b/src/ecommon/config.h index c7f4bb0..816bdcb 100644 --- a/src/ecommon/config.h +++ b/src/ecommon/config.h @@ -4,9 +4,9 @@ #ifndef EVOL_COMMON_CONFIG #define EVOL_COMMON_CONFIG -void config_default_map(const char *val); -void config_default_x(const char *val); -void config_default_y(const char *val); +void config_default_map(const char *key, const char *val); +void config_default_x(const char *key, const char *val); +void config_default_y(const char *key, const char *val); void common_config_final(void); extern const char *default_map; |