Author: Andreas Beckmann <anbe@debian.org>
Description: fix building with -Werror=incompatible-pointer-types

--- a/libXg/xtbinit.c
+++ b/libXg/xtbinit.c
@@ -128,6 +128,12 @@ ioerr(Display *d)
 	return 0;
 }
 
+static int
+ioerr2(Display *d, XErrorEvent *)
+{
+	return ioerr(d);
+}
+
 void
 xtbinit(Errfunc f, char *class, int *pargc, char **argv, char **fallbacks)
 {
@@ -175,7 +181,7 @@ xtbinit(Errfunc f, char *class, int *par
 	XtSetArg(args[n], XtNcomposeMod, &compose);	n++;
 	XtGetValues(widg, args, n);
 	XSetIOErrorHandler(ioerr);
-	XSetErrorHandler(ioerr);
+	XSetErrorHandler(ioerr2);
 
 	if (compose < 0 || compose > 5) {
 		n = 0;
