[PATCH:libXrandr] Add cast to fix gcc warning.

Thomas Klausner wiz at NetBSD.org
Sun Jun 30 04:37:52 PDT 2013


Signed-off-by: Thomas Klausner <wiz at NetBSD.org>
---
 src/XrrProvider.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/XrrProvider.c b/src/XrrProvider.c
index 309e321..234e122 100644
--- a/src/XrrProvider.c
+++ b/src/XrrProvider.c
@@ -156,7 +156,7 @@ XRRGetProviderInfo(Display *dpy, XRRScreenResources *resources, RRProvider provi
     _XRead32(dpy, xpi->outputs, rep.nOutputs << 2);
 
     _XRead32(dpy, xpi->associated_providers, rep.nAssociatedProviders << 2);
-    _XRead32(dpy, xpi->associated_capability, rep.nAssociatedProviders << 2);
+    _XRead32(dpy, (long int *)xpi->associated_capability, rep.nAssociatedProviders << 2);
 
     _XReadPad(dpy, xpi->name, rep.nameLength);
     xpi->name[rep.nameLength] = '\0';
-- 
1.8.3.1



More information about the xorg-devel mailing list