1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
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;
|