diff options
author | Keith Packard <keithp@keithp.com> | 2014-12-16 17:05:18 -0800 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2015-03-31 12:07:56 +1000 |
commit | 7402eaa0185110a60cf4aae32d7b470c1372b45b (patch) | |
tree | 99c59333fc607ac5e80b1ad6c4bc72702df41d57 /src/XrrOutput.c | |
parent | bc00b4fb0b52ed2f6f8544fa3b5da9693ee7ed90 (diff) |
libXrandr: Clean up compiler warnings
This removes warnings about shadowing local variables with the same
name, and type mismatches with _XRead32.
Reviewed-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/XrrOutput.c')
-rw-r--r-- | src/XrrOutput.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/XrrOutput.c b/src/XrrOutput.c index 4df894e..85f0b6e 100644 --- a/src/XrrOutput.c +++ b/src/XrrOutput.c @@ -102,9 +102,9 @@ XRRGetOutputInfo (Display *dpy, XRRScreenResources *resources, RROutput output) xoi->clones = (RROutput *) (xoi->modes + rep.nModes); xoi->name = (char *) (xoi->clones + rep.nClones); - _XRead32 (dpy, xoi->crtcs, rep.nCrtcs << 2); - _XRead32 (dpy, xoi->modes, rep.nModes << 2); - _XRead32 (dpy, xoi->clones, rep.nClones << 2); + _XRead32 (dpy, (long *) xoi->crtcs, rep.nCrtcs << 2); + _XRead32 (dpy, (long *) xoi->modes, rep.nModes << 2); + _XRead32 (dpy, (long *) xoi->clones, rep.nClones << 2); /* * Read name and '\0' terminate |