diff options
author | Bertrand Jacquin (Beber) <beber.mailing@gmail.com> | 2006-04-10 21:01:25 +0200 |
---|---|---|
committer | beber <beber@meathook.melee> | 2006-04-10 21:01:25 +0200 |
commit | 3c6fd19250a0647c1c774d5ee2006f56b13d9ba2 (patch) | |
tree | d05a2ef8cf2807b8cfb72f2bea746eb0ba1084ff /src/espik_config.c | |
parent | del unused m4 macros (diff) | |
download | espik-3c6fd19250a0647c1c774d5ee2006f56b13d9ba2.tar.xz |
make it rework and build
Diffstat (limited to '')
-rw-r--r-- | src/espik_config.c | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/src/espik_config.c b/src/espik_config.c index bbae1b8..a840e67 100644 --- a/src/espik_config.c +++ b/src/espik_config.c @@ -11,8 +11,6 @@ #include "espik_error.h" #include "espik_config.h" -static int ret; /* For debug */ - t_servinfo* espik_server_config_set (char* server, unsigned short port) { t_servinfo* s_info; @@ -76,23 +74,15 @@ void espik_config_default_set (void) void espik_config_init (void) { - if ((ret = ecore_config_init (APPS_NAME)) != ECORE_CONFIG_ERR_SUCC) - { - printf ("Init ecore_config failed (%d)", ret); - //kill_me (2); - //exit (ret); - } + if (ecore_config_init (APPS_NAME) != ECORE_CONFIG_ERR_SUCC) + printf ("Init ecore_config failed\n"); - if ((ret = ecore_config_load ()) != ECORE_CONFIG_ERR_SUCC) + if (ecore_config_load () != ECORE_CONFIG_ERR_SUCC) { /* If an config option is not present, * this will force it to a value */ - printf ("Load ecore_config failed (%d)", ret); + printf ("Load ecore_config failed\n"); espik_config_default_set (); - /* - kill_me (2); - exit (ret); - */ } } @@ -100,7 +90,7 @@ void espik_config_shutdown (t_info s_info) { espik_free (s_info.server); espik_free (s_info.client); -// free (s_info); +/* free (s_info); */ ecore_config_save(); ecore_config_shutdown(); |