eet: Demystify some typecasts

Simplify some confusing typecasts.  There may be more around.

No functional change.

Differential Revision: https://phab.enlightenment.org/D7281

Signed-off-by: Derek Foreman <derek.foreman.samsung@gmail.com>
This commit is contained in:
Derek Foreman 2018-11-15 15:17:58 -06:00
parent 1e498286d9
commit a9f1b588b1
1 changed files with 4 additions and 6 deletions

View File

@ -4649,9 +4649,8 @@ eet_data_get_unknown(Eet_Free_Context *context,
{
if (type == EET_T_STRING)
{
char **str;
char **str = data;
str = (char **)(((char *)data));
if (*str)
{
if ((!ed) || (!edd->func.str_direct_alloc))
@ -4668,9 +4667,8 @@ eet_data_get_unknown(Eet_Free_Context *context,
}
else if (edd && type == EET_T_INLINED_STRING)
{
char **str;
char **str = data;
str = (char **)(((char *)data));
if (*str)
{
*str = edd->func.str_alloc(*str);
@ -4708,7 +4706,7 @@ eet_data_get_unknown(Eet_Free_Context *context,
}
else
{
ptr = (void **)(((char *)data));
ptr = data;
*ptr = (void *)data_ret;
_eet_freelist_add(context, data_ret);
}
@ -4771,7 +4769,7 @@ eet_data_put_array(Eet_Dictionary *ed,
int pos = ds->pos;
if (ede->group_type == EET_G_ARRAY)
d = (void *)(((char *)data_in) + offset);
d = ((char *)data_in) + offset;
else
d = *(((char **)data_in)) + offset;