summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJihoon Kim <jihoon48.kim@samsung.com>2014-01-09 09:08:32 +0900
committerJihoon Kim <jihoon48.kim@samsung.com>2014-01-09 09:10:02 +0900
commit955cc579d4d0b52cc71e309c35d1850424dc3cca (patch)
treee4bca155523bd887effca470554af624eccb8cf9 /src
parent7566c5bbb7e7604ee26074323ff106c8d42b8a17 (diff)
fix allocator sizeof operand mismatch reported by clang
https://build.enlightenment.org/job/nightly_efl_clang_x86_64/lastSuccessfulBuild/artifact/scan-build/build/2014-01-07-1/report-QL6MiM.html#EndPath https://build.enlightenment.org/job/nightly_efl_clang_x86_64/lastSuccessfulBuild/artifact/scan-build/build/2014-01-07-1/report-a2l0Ci.html#EndPath https://build.enlightenment.org/job/nightly_efl_clang_x86_64/lastSuccessfulBuild/artifact/scan-build/build/2014-01-07-1/report-McvqNf.html#EndPath
Diffstat (limited to 'src')
-rw-r--r--src/lib/ecore_file/ecore_file_monitor_inotify.c2
-rw-r--r--src/lib/eina/eina_tiler.c2
-rw-r--r--src/lib/evas/common/evas_tiler.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/ecore_file/ecore_file_monitor_inotify.c b/src/lib/ecore_file/ecore_file_monitor_inotify.c
index e21e41c8c4..2c400870c8 100644
--- a/src/lib/ecore_file/ecore_file_monitor_inotify.c
+++ b/src/lib/ecore_file/ecore_file_monitor_inotify.c
@@ -114,7 +114,7 @@ ecore_file_monitor_backend_add(const char *path,
114 ecore_file_monitor_backend_init(); 114 ecore_file_monitor_backend_init();
115 } 115 }
116 116
117 em = (Ecore_File_Monitor *)calloc(1, sizeof(Ecore_File_Monitor_Inotify)); 117 em = (Ecore_File_Monitor *)calloc(1, sizeof(Ecore_File_Monitor));
118 if (!em) return NULL; 118 if (!em) return NULL;
119 119
120 em->func = func; 120 em->func = func;
diff --git a/src/lib/eina/eina_tiler.c b/src/lib/eina/eina_tiler.c
index 0301737422..bffa66b29d 100644
--- a/src/lib/eina/eina_tiler.c
+++ b/src/lib/eina/eina_tiler.c
@@ -167,7 +167,7 @@ rect_list_node_pool_get(void)
167 return node; 167 return node;
168 } 168 }
169 else 169 else
170 return malloc(sizeof(rect_node_t)); 170 return malloc(sizeof(list_node_t));
171} 171}
172 172
173 173
diff --git a/src/lib/evas/common/evas_tiler.c b/src/lib/evas/common/evas_tiler.c
index fd6c65a479..bf2a590830 100644
--- a/src/lib/evas/common/evas_tiler.c
+++ b/src/lib/evas/common/evas_tiler.c
@@ -72,7 +72,7 @@ rect_list_node_pool_get(void)
72 list_node_pool.len--; 72 list_node_pool.len--;
73 return node; 73 return node;
74 } 74 }
75 else return (list_node_t *)malloc(sizeof(rect_node_t)); 75 else return (list_node_t *)malloc(sizeof(list_node_t));
76} 76}
77 77
78static inline void 78static inline void