summaryrefslogtreecommitdiff
path: root/src/XrrProperty.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-12-16 17:05:18 -0800
committerDave Airlie <airlied@redhat.com>2015-03-31 12:07:56 +1000
commit7402eaa0185110a60cf4aae32d7b470c1372b45b (patch)
tree99c59333fc607ac5e80b1ad6c4bc72702df41d57 /src/XrrProperty.c
parentbc00b4fb0b52ed2f6f8544fa3b5da9693ee7ed90 (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/XrrProperty.c')
-rw-r--r--src/XrrProperty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/XrrProperty.c b/src/XrrProperty.c
index 2096c56..502e834 100644
--- a/src/XrrProperty.c
+++ b/src/XrrProperty.c
@@ -70,7 +70,7 @@ XRRListOutputProperties (Display *dpy, RROutput output, int *nprop)
return NULL;
}
- _XRead32 (dpy, props, nbytes);
+ _XRead32 (dpy, (long *) props, nbytes);
}
*nprop = rep.nAtoms;