diff options
author | beber <beber> | 2005-08-23 21:41:46 +0000 |
---|---|---|
committer | beber <beber> | 2005-08-23 21:41:46 +0000 |
commit | 3748ddf57900d4633dd80a02a287b1069fad00d2 (patch) | |
tree | 8c083c2d4b400963865abcafbb6cd7d0ff9fa622 /src/espik_config.c | |
parent | cjk_malloc has die, glibc detected if malloc failed, so don't do crapie, lot ... (diff) | |
download | espik-3748ddf57900d4633dd80a02a287b1069fad00d2.tar.xz |
FFFFFFFFUUUUUUUUUUUUUUUUUCCCCCCCCCCCCCCCCCCKKKKKKKKKKKKKK WIIIIIIIIIFEEEEEEEEEEEE
Diffstat (limited to 'src/espik_config.c')
-rw-r--r-- | src/espik_config.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/espik_config.c b/src/espik_config.c index c207cd9..88e9097 100644 --- a/src/espik_config.c +++ b/src/espik_config.c @@ -10,9 +10,9 @@ #include "espik_config.h" #include "espik_error.h" -t_servinfo* espik_server_config_set (char *server, unsigned short port) +t_servinfo* espik_server_config_set (char* server, unsigned short port) { - t_servinfo *s_info; + t_servinfo* s_info; s_info = malloc (sizeof (t_servinfo)); @@ -22,10 +22,10 @@ t_servinfo* espik_server_config_set (char *server, unsigned short port) return (s_info); } -t_userinfo *espik_user_sysinfo_get () +t_userinfo* espik_user_sysinfo_get () { - struct passwd *pw; - t_userinfo *u_info; + struct passwd* pw; + t_userinfo* u_info; pw = getpwuid (getuid ()); @@ -38,9 +38,9 @@ t_userinfo *espik_user_sysinfo_get () return (u_info); } -void espik_config_default_set () +void espik_config_default_set () { - t_userinfo *user_sysinfo; + t_userinfo* user_sysinfo; ecore_config_string_default ("/config/server/0/host", "beber.melee"); ecore_config_int_default ("/config/server/0/port", 6667); @@ -59,7 +59,7 @@ void espik_config_default_set () free (user_sysinfo); } -void espik_config_init () +void espik_config_init () { if (ecore_config_init (APPS_NAME) != ECORE_CONFIG_ERR_SUCC) { @@ -70,7 +70,7 @@ void espik_config_init () ecore_config_load (); } -void espik_config_get (t_info * s_info) +void espik_config_get (t_info *s_info) { s_info->server = malloc (sizeof (t_servinfo)); s_info->client = malloc (sizeof (t_userinfo)); @@ -91,7 +91,7 @@ void espik_config_get (t_info * s_info) ecore_config_save (); } -void espik_config_set (t_info config) +void espik_config_set (t_info config) { ecore_config_int_set ("/config/server/len", 1); ecore_config_string_set ("/config/server/0/host", config.server->host); |