Blob Blame History Raw
From 6e2863b51b1404e9c1525243c9789d0643136456 Mon Sep 17 00:00:00 2001
From: Colin Walters <walters@verbum.org>
Date: Tue, 2 Mar 2010 17:16:07 -0500
Subject: [PATCH] Work around usage of XPointer

XLib has historically used "char*" for "generic pointer" but
compliers rightly complain when casting this to a structure.

Work around this by casting to void * and letting the implicit
conversion to a structure type take effect.

https://bugzilla.gnome.org/show_bug.cgi?id=611644
---
 src/core/async-getprop.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/core/async-getprop.c b/src/core/async-getprop.c
index 31b0edc..6485544 100644
--- a/src/core/async-getprop.c
+++ b/src/core/async-getprop.c
@@ -215,7 +215,7 @@ async_get_property_handler (Display *dpy,
   AgPerDisplayData *dd;
   int bytes_read;
 
-  dd = (AgPerDisplayData*) data;
+  dd = (void*) data;
   
 #if 0
   printf ("%s: seeing request seq %ld buflen %d\n", __FUNCTION__,
-- 
1.6.6.1