Module Name: xsrc
Committed By: mrg
Date: Fri May 31 09:58:36 UTC 2013
Modified Files:
xsrc/external/mit/libXrandr/dist/src: XrrProvider.c
Log Message:
add some casts to appease GCC; this code is kind of ugly but it
seems to be mostly not broken.
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
xsrc/external/mit/libXrandr/dist/src/XrrProvider.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: xsrc/external/mit/libXrandr/dist/src/XrrProvider.c
diff -u xsrc/external/mit/libXrandr/dist/src/XrrProvider.c:1.1.1.1 xsrc/external/mit/libXrandr/dist/src/XrrProvider.c:1.2
--- xsrc/external/mit/libXrandr/dist/src/XrrProvider.c:1.1.1.1 Fri May 31 08:35:37 2013
+++ xsrc/external/mit/libXrandr/dist/src/XrrProvider.c Fri May 31 09:58:36 2013
@@ -77,7 +77,7 @@ XRRGetProviderResources(Display *dpy, Wi
xrpr->nproviders = rep.nProviders;
xrpr->providers = (RRProvider *)(xrpr + 1);
- _XRead32(dpy, xrpr->providers, rep.nProviders << 2);
+ _XRead32(dpy, (RRProvider *)xrpr->providers, rep.nProviders << 2);
if (nbytes > nbytesRead)
_XEatData (dpy, (unsigned long) (nbytes - nbytesRead));
@@ -156,7 +156,7 @@ XRRGetProviderInfo(Display *dpy, XRRScre
_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, (RRProvider *)xpi->associated_capability, rep.nAssociatedProviders << 2);
_XReadPad(dpy, xpi->name, rep.nameLength);
xpi->name[rep.nameLength] = '\0';