diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/espik_config.c | 20 | ||||
-rw-r--r-- | src/espik_net.c | 14 |
2 files changed, 17 insertions, 17 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); diff --git a/src/espik_net.c b/src/espik_net.c index fe8bdd3..416f815 100644 --- a/src/espik_net.c +++ b/src/espik_net.c @@ -9,11 +9,11 @@ #include "espik_error.h" #include "espik.h" -typedef int (*Handler_Func) (void *data, int ev_type, void *ev); +typedef int (*Handler_Func) (void* data, int ev_type, void* ev); -Ecore_Con_Server *con_sock; +Ecore_Con_Server* con_sock; -void espik_con_init (t_info serv_info) +void espik_con_init (t_info serv_info) { ecore_con_init (); @@ -29,7 +29,7 @@ void espik_con_init (t_info serv_info) (Handler_Func) server_data, NULL); } -void espik_con_shutdown () +void espik_con_shutdown () { printf ("> espik_con_shutdown\n"); @@ -40,10 +40,10 @@ void espik_con_shutdown () /* ecore_main_loop_quit (); */ } -void espik_raw_send (char *msg) +void espik_raw_send (char *msg) { - int len; - char *out; + int len; + char* out; len = strlen (msg) + 3; |