fix allocator sizeof operand mismatch reported by clang
authorJihoon Kim <jihoon48.kim@samsung.com>
Thu, 9 Jan 2014 00:08:32 +0000 (09:08 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Thu, 9 Jan 2014 00:10:02 +0000 (09:10 +0900)
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

src/lib/ecore_file/ecore_file_monitor_inotify.c
src/lib/eina/eina_tiler.c
src/lib/evas/common/evas_tiler.c

index e21e41c..2c40087 100644 (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_Inotify));
+   em = (Ecore_File_Monitor *)calloc(1, sizeof(Ecore_File_Monitor));
    if (!em) return NULL;
 
    em->func = func;
index 0301737..bffa66b 100644 (file)
@@ -167,7 +167,7 @@ rect_list_node_pool_get(void)
         return node;
      }
    else
-      return malloc(sizeof(rect_node_t));
+      return malloc(sizeof(list_node_t));
 }
 
 
index fd6c65a..bf2a590 100644 (file)
@@ -72,7 +72,7 @@ rect_list_node_pool_get(void)
         list_node_pool.len--;
         return node;
      }
-   else return (list_node_t *)malloc(sizeof(rect_node_t));
+   else return (list_node_t *)malloc(sizeof(list_node_t));
 }
 
 static inline void