fix clang sizeof complaint
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Tue, 16 Jul 2013 11:00:43 +0000 (20:00 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Tue, 16 Jul 2013 11:45:24 +0000 (20:45 +0900)
src/lib/ecore_file/ecore_file_monitor_inotify.c

index 112bc81f1453f37d8bc19eee681828fa9d4ba76c..60050e3ca59dc5d860a97317630cd94c46a80920 100644 (file)
@@ -112,7 +112,7 @@ ecore_file_monitor_backend_add(const char *path,
         ecore_file_monitor_backend_init();
      }
 
-   em = calloc(1, sizeof(Ecore_File_Monitor_Inotify));
+   em = (Ecore_File_Monitor *)calloc(1, sizeof(Ecore_File_Monitor_Inotify));
    if (!em) return NULL;
 
    em->func = func;