raster pushed a commit to branch master.
commit d07a30fa250add6a6f515d95b0b8eaebeaf9a9b4
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date: Tue Jul 16 19:57:13 2013 +0900
fix clang sizeof complaint
---
src/lib/ecore_x/xlib/ecore_x.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/lib/ecore_x/xlib/ecore_x.c b/src/lib/ecore_x/xlib/ecore_x.c
index 92a796a..fe16255 100644
--- a/src/lib/ecore_x/xlib/ecore_x.c
+++ b/src/lib/ecore_x/xlib/ecore_x.c
@@ -66,7 +66,8 @@ static int _ecore_x_event_gesture_id = 0;
static int _ecore_x_event_xkb_id = 0;
#endif /* ifdef ECORE_XKB */
static int _ecore_x_event_handlers_num = 0;
-static void (**_ecore_x_event_handlers) (XEvent * event) = NULL;
+typedef void (*Ecore_X_Event_Handler) (XEvent *event);
+static Ecore_X_Event_Handler *_ecore_x_event_handlers = NULL;
static int _ecore_x_init_count = 0;
static int _ecore_x_grab_count = 0;
@@ -428,7 +429,7 @@ ecore_x_init(const char *name)
ECORE_X_EVENT_HANDLERS_GROW(xkb_base, XkbNumberEvents);
#endif
- _ecore_x_event_handlers = calloc(_ecore_x_event_handlers_num, sizeof(void
*));
+ _ecore_x_event_handlers = calloc(_ecore_x_event_handlers_num,
sizeof(Ecore_X_Event_Handler));
if (!_ecore_x_event_handlers)
goto close_display;
--
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk