File: incompatible-pointer-types.patch

package info (click to toggle)
wily 0.13.42-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,820 kB
  • sloc: ansic: 25,541; perl: 580; sh: 415; makefile: 400; python: 30; exp: 17
file content (27 lines) | stat: -rw-r--r-- 643 bytes parent folder | download | duplicates (2)
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;