summaryrefslogtreecommitdiff
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
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.
-rw-r--r--src/echar/config.c12
-rw-r--r--src/echar/config.h8
-rw-r--r--src/ecommon/config.c9
-rw-r--r--src/ecommon/config.h6
-rw-r--r--src/elogin/config.c3
-rw-r--r--src/elogin/config.h2
6 files changed, 24 insertions, 16 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;
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;
diff --git a/src/elogin/config.c b/src/elogin/config.c
index 1c448c1..18f8275 100644
--- a/src/elogin/config.c
+++ b/src/elogin/config.c
@@ -17,7 +17,8 @@
char *update_server = NULL;
-void config_update_server(const char *val)
+void config_update_server(const char *key __attribute__ ((unused)),
+ const char *val)
{
update_server = aStrdup(val);
}
diff --git a/src/elogin/config.h b/src/elogin/config.h
index 0dd529b..ffb19a7 100644
--- a/src/elogin/config.h
+++ b/src/elogin/config.h
@@ -4,7 +4,7 @@
#ifndef EVOL_LOGIN_CONFIG
#define EVOL_LOGIN_CONFIG
-void config_update_server(const char *val);
+void config_update_server(const char *key, const char *val);
void config_final(void);
extern char *update_server;