summaryrefslogtreecommitdiff
path: root/src/lib/eet
diff options
context:
space:
mode:
authorDerek Foreman <derek.foreman.samsung@gmail.com>2018-11-15 15:17:58 -0600
committerDerek Foreman <derek.foreman.samsung@gmail.com>2018-11-16 12:16:07 -0600
commita9f1b588b1a5019d5ac310ac51b1d8a7cfeb861f (patch)
treef196767cfd0b6ac68d3f8f3007d9e35c1d4a7a0d /src/lib/eet
parent1e498286d999109eb4504e4cf98b1412d4554f0b (diff)
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>
Diffstat (limited to 'src/lib/eet')
-rw-r--r--src/lib/eet/eet_data.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/lib/eet/eet_data.c b/src/lib/eet/eet_data.c
index c3ad0a0989..2fe8e0343a 100644
--- a/src/lib/eet/eet_data.c
+++ b/src/lib/eet/eet_data.c
@@ -4649,9 +4649,8 @@ eet_data_get_unknown(Eet_Free_Context *context,
4649 { 4649 {
4650 if (type == EET_T_STRING) 4650 if (type == EET_T_STRING)
4651 { 4651 {
4652 char **str; 4652 char **str = data;
4653 4653
4654 str = (char **)(((char *)data));
4655 if (*str) 4654 if (*str)
4656 { 4655 {
4657 if ((!ed) || (!edd->func.str_direct_alloc)) 4656 if ((!ed) || (!edd->func.str_direct_alloc))
@@ -4668,9 +4667,8 @@ eet_data_get_unknown(Eet_Free_Context *context,
4668 } 4667 }
4669 else if (edd && type == EET_T_INLINED_STRING) 4668 else if (edd && type == EET_T_INLINED_STRING)
4670 { 4669 {
4671 char **str; 4670 char **str = data;
4672 4671
4673 str = (char **)(((char *)data));
4674 if (*str) 4672 if (*str)
4675 { 4673 {
4676 *str = edd->func.str_alloc(*str); 4674 *str = edd->func.str_alloc(*str);
@@ -4708,7 +4706,7 @@ eet_data_get_unknown(Eet_Free_Context *context,
4708 } 4706 }
4709 else 4707 else
4710 { 4708 {
4711 ptr = (void **)(((char *)data)); 4709 ptr = data;
4712 *ptr = (void *)data_ret; 4710 *ptr = (void *)data_ret;
4713 _eet_freelist_add(context, data_ret); 4711 _eet_freelist_add(context, data_ret);
4714 } 4712 }
@@ -4771,7 +4769,7 @@ eet_data_put_array(Eet_Dictionary *ed,
4771 int pos = ds->pos; 4769 int pos = ds->pos;
4772 4770
4773 if (ede->group_type == EET_G_ARRAY) 4771 if (ede->group_type == EET_G_ARRAY)
4774 d = (void *)(((char *)data_in) + offset); 4772 d = ((char *)data_in) + offset;
4775 else 4773 else
4776 d = *(((char **)data_in)) + offset; 4774 d = *(((char **)data_in)) + offset;
4777 4775