formatting, switch lost_client to bool
authordiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 20 Sep 2010 18:52:52 +0000 (18:52 +0000)
committerdiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 20 Sep 2010 18:52:52 +0000 (18:52 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@52501 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_con/ecore_con.c

index 8e08717..d60dda2 100644 (file)
@@ -822,8 +822,7 @@ ecore_con_client_del(Ecore_Con_Client *cl)
    else
      {
         if (cl->host_server)
-           cl->host_server->clients = eina_list_remove(
-                 cl->host_server->clients, cl);
+           cl->host_server->clients = eina_list_remove(cl->host_server->clients, cl);
 
         _ecore_con_client_free(cl);
      }
@@ -1795,7 +1794,7 @@ _ecore_con_svr_udp_handler(void *data, Ecore_Fd_Handler *fd_handler)
                                        NULL);
                     }
 
-                  if(!cl->delete_me)
+                  if (!cl->delete_me)
                     {
                        Ecore_Con_Event_Client_Add *add;
 
@@ -1804,10 +1803,8 @@ _ecore_con_svr_udp_handler(void *data, Ecore_Fd_Handler *fd_handler)
                          {
 /*cl->event_count++;*/
                             add->client = cl;
-                            ecore_event_add(ECORE_CON_EVENT_CLIENT_ADD,
-                                            add,
-                                            _ecore_con_event_client_add_free,
-                                            NULL);
+                            ecore_event_add(ECORE_CON_EVENT_CLIENT_ADD, add,
+                                            _ecore_con_event_client_add_free, NULL);
                          }
                     }
                }
@@ -1827,9 +1824,8 @@ _ecore_con_svr_udp_handler(void *data, Ecore_Fd_Handler *fd_handler)
                        svr->event_count++;
                        /* be explicit here */
                        e->client = NULL;
-                            ecore_event_add(ECORE_CON_EVENT_CLIENT_DEL, e,
-                                       _ecore_con_event_client_del_free,
-                                       NULL);
+                       ecore_event_add(ECORE_CON_EVENT_CLIENT_DEL, e,
+                                  _ecore_con_event_client_del_free, NULL);
                     }
                }
 
@@ -1857,7 +1853,7 @@ _ecore_con_svr_cl_read(Ecore_Con_Client *cl)
    for (tries = 0; tries < 16; tries++)
      {
         int num;
-        int lost_client = 1;
+        Eina_Bool lost_client = EINA_TRUE;
         unsigned char buf[READBUFSIZ];
 
         errno = 0;
@@ -1866,11 +1862,11 @@ _ecore_con_svr_cl_read(Ecore_Con_Client *cl)
           {
              if ((num = read(cl->fd, buf, READBUFSIZ)) <= 0)
                 if ((num < 0) && (errno == EAGAIN))
-                   lost_client = 0;
+                   lost_client = EINA_FALSE;
 
           }
         else if (!(num = ecore_con_ssl_client_read(cl, buf, READBUFSIZ)))
-           lost_client = 0;
+           lost_client = EINA_FALSE;
 
         if (num > 0)
           {