From bc2de318263e5fc7da07cd1dd6a2b28e87c416ed Mon Sep 17 00:00:00 2001 From: beber Date: Sat, 10 Dec 2005 22:19:52 +0000 Subject: ident to 80 chars --- src/espik_net.c | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) (limited to 'src/espik_net.c') diff --git a/src/espik_net.c b/src/espik_net.c index 219e262..2731165 100644 --- a/src/espik_net.c +++ b/src/espik_net.c @@ -30,31 +30,36 @@ void espik_con_init (t_info serv_info) /* espik_debug_printf ("nb_launch = %d", nb_launch); */ con_sock = ecore_con_server_connect (ECORE_CON_REMOTE_SYSTEM, - serv_info.server->host, (int)serv_info.server->port, NULL); + serv_info.server->host, + (int)serv_info.server->port, NULL); if (!con_sock) { - espik_debug_print ("ecore_con_server_connect failed (ECORE_CON_REMOTE_SYSTEM)"); + espik_debug_print ("ecore_con_server_connect failed " + "(ECORE_CON_REMOTE_SYSTEM)"); exit (-1); } if (! (ecore_event_handler_add (ECORE_CON_EVENT_SERVER_DATA, (Handler_Func) server_data, NULL))) { - espik_debug_print ("ecore_event_handler_add (ECORE_CON_EVENT_SERVER_DATA)"); + espik_debug_print ("ecore_event_handler_add " + "(ECORE_CON_EVENT_SERVER_DATA)"); exit (-1); } if (! (ecore_event_handler_add (ECORE_CON_EVENT_SERVER_ADD, (Handler_Func) espik_con_up, NULL))) { - espik_debug_print ("ecore_event_handler_add (ECORE_CON_EVENT_SERVER_ADD)"); + espik_debug_print ("ecore_event_handler_add " + "(ECORE_CON_EVENT_SERVER_ADD)"); exit (-1); } if (! (ecore_event_handler_add (ECORE_CON_EVENT_SERVER_DEL, (Handler_Func) espik_con_shutdown, NULL))) { - espik_debug_print ("ecore_event_handler_add (ECORE_CON_EVENT_SERVER_DEL)"); + espik_debug_print ("ecore_event_handler_add " + "(ECORE_CON_EVENT_SERVER_DEL)"); exit (-1); } espik_leave(); @@ -69,11 +74,15 @@ void espik_con_up() char *tmp, *tmp2; - tmp = malloc (sizeof(char)* (strlen("NICK ") + strlen (a_infos.client->nickname))); - tmp2 = malloc (sizeof(char)* (strlen("USER localhost:") + strlen(a_infos.client->nickname)*2 + strlen (a_infos.client->realname))); + tmp = malloc (sizeof(char)*(strlen("NICK ") + + strlen (a_infos.client->nickname))); + tmp2 = malloc (sizeof(char)*(strlen("USER localhost:") + + strlen(a_infos.client->nickname)*2 + + strlen (a_infos.client->realname))); sprintf (tmp, "NICK %s", a_infos.client->nickname); - sprintf (tmp2, "USER %s %s localhost: %s", a_infos.client->nickname, a_infos.client->nickname, a_infos.client->realname); + sprintf (tmp2, "USER %s %s localhost: %s", a_infos.client->nickname, + a_infos.client->nickname, a_infos.client->realname); espik_raw_send (tmp); espik_raw_send (tmp2); @@ -93,7 +102,8 @@ void espik_con_shutdown () if (!connected) espik_debug_print ("Unable to connect to server"); - espik_debug_print ("ecore_con_server_del: %p", ecore_con_server_del (con_sock)); + espik_debug_print ("ecore_con_server_del: %p", + ecore_con_server_del (con_sock)); ecore_con_shutdown (); /* espik_debug_print ("< espik_con_shutdown"); */ -- cgit v1.2.3