summaryrefslogtreecommitdiff
path: root/src/XrrProvider.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/XrrProvider.c')
-rw-r--r--src/XrrProvider.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/XrrProvider.c b/src/XrrProvider.c
index 014ddd9..9e620c7 100644
--- a/src/XrrProvider.c
+++ b/src/XrrProvider.c
@@ -77,7 +77,7 @@ XRRGetProviderResources(Display *dpy, Window window)
xrpr->nproviders = rep.nProviders;
xrpr->providers = (RRProvider *)(xrpr + 1);
- _XRead32(dpy, xrpr->providers, rep.nProviders << 2);
+ _XRead32(dpy, (long *) xrpr->providers, rep.nProviders << 2);
if (nbytes > nbytesRead)
_XEatData (dpy, (unsigned long) (nbytes - nbytesRead));
@@ -152,10 +152,10 @@ XRRGetProviderInfo(Display *dpy, XRRScreenResources *resources, RRProvider provi
xpi->associated_capability = (unsigned int *)(xpi->associated_providers + rep.nAssociatedProviders);
xpi->name = (char *)(xpi->associated_capability + rep.nAssociatedProviders);
- _XRead32(dpy, xpi->crtcs, rep.nCrtcs << 2);
- _XRead32(dpy, xpi->outputs, rep.nOutputs << 2);
+ _XRead32(dpy, (long *) xpi->crtcs, rep.nCrtcs << 2);
+ _XRead32(dpy, (long *) xpi->outputs, rep.nOutputs << 2);
- _XRead32(dpy, xpi->associated_providers, rep.nAssociatedProviders << 2);
+ _XRead32(dpy, (long *) xpi->associated_providers, rep.nAssociatedProviders << 2);
/*
* _XRead32 reads a series of 32-bit values from the protocol and writes