aboutsummaryrefslogtreecommitdiff
path: root/src/espik_config.c
diff options
context:
space:
mode:
authorbeber <beber>2005-12-02 18:14:42 +0000
committerbeber <beber>2005-12-02 18:14:42 +0000
commitbd396c194eebb3fb02ddf2d1eaca42aad1eeeeba (patch)
tree6283eaecf51af1b512b18f98470a24ccc9242e77 /src/espik_config.c
parentDude ! alloc memory (diff)
downloadespik-bd396c194eebb3fb02ddf2d1eaca42aad1eeeeba.tar.xz
user right nick
Diffstat (limited to 'src/espik_config.c')
-rw-r--r--src/espik_config.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/espik_config.c b/src/espik_config.c
index 82371eb..c770b54 100644
--- a/src/espik_config.c
+++ b/src/espik_config.c
@@ -69,22 +69,23 @@ void espik_config_init ()
kill_me (2);
/* exit (ret); */
}
-
- /* If an config option is not present, this will force it to a value */
- espik_config_default_set ();
- if ((ret = ecore_config_load ()) != ECORE_CONFIG_ERR_SUCC)
+/* if ((ret = ecore_config_load ()) != ECORE_CONFIG_ERR_SUCC)
{
fprintf (stderr, "espik_config_init: Load ecore_config failed (%d)\n", ret);
kill_me (2);
-/* exit (ret); */
+// exit (ret);
}
+*/
}
void espik_config_get (t_info *s_info)
{
s_info->server = malloc (sizeof (t_servinfo));
s_info->client = malloc (sizeof (t_userinfo));
+
+ /* If an config option is not present, this will force it to a value */
+ espik_config_default_set ();
s_info->server->host = ecore_config_string_get ("/config/server/0/host");
s_info->server->port = (unsigned short)ecore_config_int_get ("/config/server/0/port");