technically xerrorhandlers have a return of an int - but its ignored
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 28 Aug 2010 04:28:15 +0000 (04:28 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 28 Aug 2010 04:28:15 +0000 (04:28 +0000)
by xlib (explicitly in docs).

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@51693 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_x/xlib/ecore_x_error.c
src/lib/ecore_x/xlib/ecore_x_image.c

index 92f4b69..1d27937 100644 (file)
@@ -9,7 +9,7 @@
 #include "ecore_x_private.h"
 #include "Ecore_X.h"
 
-static void      _ecore_x_error_handle(Display *d, XErrorEvent *ev);
+static int       _ecore_x_error_handle(Display *d, XErrorEvent *ev);
 static int       _ecore_x_io_error_handle(Display *d);
 
 static void (*_error_func)(void *data) = NULL;
@@ -78,7 +78,7 @@ _ecore_x_error_handler_init(void)
    XSetIOErrorHandler((XIOErrorHandler)_ecore_x_io_error_handle);
 } /* _ecore_x_error_handler_init */
 
-static void
+static int
 _ecore_x_error_handle(Display *d, XErrorEvent *ev)
 {
    if (d == _ecore_x_disp)
@@ -88,6 +88,7 @@ _ecore_x_error_handle(Display *d, XErrorEvent *ev)
         if (_error_func)
            _error_func(_error_data);
      }
+   return 0;
 } /* _ecore_x_error_handle */
 
 static int
index f0d6286..ce36381 100644 (file)
 static int _ecore_x_image_shm_can = -1;
 static int _ecore_x_image_err = 0;
 
-static void
+static int
 _ecore_x_image_error_handler(Display *d __UNUSED__, XErrorEvent *ev __UNUSED__)
 {
    _ecore_x_image_err = 1;
+   return 0;
 } /* _ecore_x_image_error_handler */
 
 static void