since Eo.h is inclued in c++ stuff... how about we cast from the void *

return from calloc to Eo_Dbg_Info * since c++ is really unhappy with
this stuff without a cast (silly c++).
This commit is contained in:
Carsten Haitzler 2013-03-05 23:00:38 +09:00
parent 3883d49185
commit 63802e5b84
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ typedef struct _Eo_Dbg_Info Eo_Dbg_Info;
static inline Eo_Dbg_Info *
EO_DBG_INFO_LIST_APPEND(Eo_Dbg_Info *list, const char *name)
{
Eo_Dbg_Info *tmp = calloc(1, sizeof(*tmp));
Eo_Dbg_Info *tmp = (Eo_Dbg_Info *)calloc(1, sizeof(*tmp));
tmp->name = eina_stringshare_add(name);
eina_value_list_setup(&(tmp->value), EO_DBG_INFO_TYPE);
if (list)