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:
Carsten Haitzler 2014-01-09 10:02:26 +09:00
parent 955cc579d4
commit 555df8f510
3 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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));
}

View File

@ -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