Thanks, it was my mistake.
My bad.
Fixed, in svn!

Daniel Juyung Seo (SeoZ)

On Wed, Aug 24, 2011 at 11:04 PM, Gustavo Sverzut Barbieri
<[email protected]> wrote:
> On Wed, Aug 24, 2011 at 5:10 AM, Enlightenment SVN <
> [email protected]> wrote:
>
>> Log:
>> elm toolbar: Fixed build warnings.
>>
>> -   char *txt = item->access_info;
>> +   char *txt = (char *)item->access_info;
>>    if (!txt) txt = (char *)it->label;
>>    if (txt) return strdup(txt);
>>    return txt;
>
>
> Hey Seoz, don't fix the bugs like this... it is not wrong, but not
> recommended to fix the problem at the wrong place.
>
> Consider the following solution:
>   const char *txt = item->access_info;
>   if (!txt) txt = it->label;
>   if (txt) return strdup(txt);
>   return NULL;
>
> no cast abuse, make it clear of the usage and the return of NULL.
>
> moreover, the function signature has item marked as __UNUSED__ while it's
> being used... pfff :-/
>
> --
> Gustavo Sverzut Barbieri
> http://profusion.mobi embedded systems
> --------------------------------------
> MSN: [email protected]
> Skype: gsbarbieri
> Mobile: +55 (19) 9225-2202
> ------------------------------------------------------------------------------
> EMC VNX: the world's simplest storage, starting under $10K
> The only unified storage solution that offers unified management
> Up to 160% more powerful than alternatives and 25% more efficient.
> Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
> _______________________________________________
> enlightenment-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>

------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to