summaryrefslogtreecommitdiff
path: root/src/ecommon
diff options
context:
space:
mode:
Diffstat (limited to 'src/ecommon')
-rw-r--r--src/ecommon/config.c9
-rw-r--r--src/ecommon/config.h6
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;