forked from enlightenment/efl
Revert "fix allocator sizeof operand mismatch reported by clang"
This reverts commit 955cc579d4
.
why? wrong. no. and it breaks actual execution/functioning. segv land
This commit is contained in:
parent
955cc579d4
commit
555df8f510
|
@ -114,7 +114,7 @@ ecore_file_monitor_backend_add(const char *path,
|
|||
ecore_file_monitor_backend_init();
|
||||
}
|
||||
|
||||
em = (Ecore_File_Monitor *)calloc(1, sizeof(Ecore_File_Monitor));
|
||||
em = (Ecore_File_Monitor *)calloc(1, sizeof(Ecore_File_Monitor_Inotify));
|
||||
if (!em) return NULL;
|
||||
|
||||
em->func = func;
|
||||
|
|
|
@ -167,7 +167,7 @@ rect_list_node_pool_get(void)
|
|||
return node;
|
||||
}
|
||||
else
|
||||
return malloc(sizeof(list_node_t));
|
||||
return malloc(sizeof(rect_node_t));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -72,7 +72,7 @@ rect_list_node_pool_get(void)
|
|||
list_node_pool.len--;
|
||||
return node;
|
||||
}
|
||||
else return (list_node_t *)malloc(sizeof(list_node_t));
|
||||
else return (list_node_t *)malloc(sizeof(rect_node_t));
|
||||
}
|
||||
|
||||
static inline void
|
||||
|
|
Loading…
Reference in New Issue