Enlightenment SVN wrote:
> Log:
>   correctly use & to detect server type instead of ==

This can't be correct. ECORE_CON_REMOTE_UDP etc. comes from an enum.

S.

>   
> Author:       discomfitor
> Date:         2010-07-28 18:42:43 -0700 (Wed, 28 Jul 2010)
> New Revision: 50630
> 
> Modified:
>   trunk/ecore/src/lib/ecore_con/ecore_con.c 
> 
> Modified: trunk/ecore/src/lib/ecore_con/ecore_con.c
> ===================================================================
> --- trunk/ecore/src/lib/ecore_con/ecore_con.c 2010-07-29 01:28:18 UTC (rev 
> 50629)
> +++ trunk/ecore/src/lib/ecore_con/ecore_con.c 2010-07-29 01:42:43 UTC (rev 
> 50630)
> @@ -772,10 +772,9 @@
>          return NULL;
>       }
>  
> -   if(cl->client_addr && cl->server &&
> -      (cl->server->type == ECORE_CON_REMOTE_UDP ||
> -       cl->server->type ==
> -       ECORE_CON_REMOTE_MCAST))
> +   if (cl->client_addr && cl->server &&
> +      ((cl->server->type & ECORE_CON_REMOTE_UDP) ||
> +       (cl->server->type & ECORE_CON_REMOTE_MCAST)))
>        free(cl->client_addr);
>  
>     data = cl->data;
> @@ -2081,9 +2080,8 @@
>  
>     if (((e->client->event_count == 0) && (e->client->delete_me)) ||
>         ((e->client->server &&
> -         (e->client->server->type == ECORE_CON_REMOTE_UDP ||
> -          e->client->server->type ==
> -          ECORE_CON_REMOTE_MCAST))))
> +         (e->client->server->type & ECORE_CON_REMOTE_UDP ||
> +          e->client->server->type & ECORE_CON_REMOTE_MCAST))))
>        ecore_con_client_del(e->client);
>  
>     free(e);
> 
> 
> ------------------------------------------------------------------------------
> The Palm PDK Hot Apps Program offers developers who use the
> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> of $1 Million in cash or HP Products. Visit us here for more details:
> http://p.sf.net/sfu/dev2dev-palm
> _______________________________________________
> enlightenment-svn mailing list
> enlightenment-...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn


------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to