[metacity] Work around usage of XPointer
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] Work around usage of XPointer
- Date: Mon, 28 Feb 2011 22:18:17 +0000 (UTC)
commit 687376bb549b3d60ba848c9d4105fe41087f3a77
Author: Colin Walters <walters verbum org>
Date: Tue Mar 2 17:16:07 2010 -0500
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__,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]