summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2012-02-15 15:30:59 -0800
committerSung-Jin Park <sj76.park@samsung.com>2013-09-02 23:32:31 -0400
commit13a01fc1239bdafbd016be0b03e736fae1c33a9e (patch)
tree2034ca5ae9d142a57300571a73cfe6513579dc41
parenteacd0cf2d1eb9e61f5acaa6cafa5ff14d87c9b0c (diff)
downloadxev-13a01fc1239bdafbd016be0b03e736fae1c33a9e.tar.gz
xev-13a01fc1239bdafbd016be0b03e736fae1c33a9e.tar.bz2
xev-13a01fc1239bdafbd016be0b03e736fae1c33a9e.zip
Rename "mask" variable to "rr_mask" in randr setup code.
Fixes gcc warning: xev.c: In function `main': xev.c:1129: warning: declaration of 'mask' shadows a previous local xev.c:923: warning: shadowed declaration is here Change-Id: Ic42076df5348e76139f6f013a76860f5566ed52e Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--xev.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/xev.c b/xev.c
index 0a4cb01..9f9111a 100644
--- a/xev.c
+++ b/xev.c
@@ -1126,13 +1126,13 @@ main (int argc, char **argv)
int rr_major, rr_minor;
if (XRRQueryVersion (dpy, &rr_major, &rr_minor)) {
- int mask = RRScreenChangeNotifyMask;
+ int rr_mask = RRScreenChangeNotifyMask;
if (rr_major > 1
|| (rr_major == 1 && rr_minor >= 2))
- mask |= RRCrtcChangeNotifyMask | RROutputChangeNotifyMask |
- RROutputPropertyNotifyMask;
- XRRSelectInput (dpy, w, mask);
+ rr_mask |= RRCrtcChangeNotifyMask | RROutputChangeNotifyMask |
+ RROutputPropertyNotifyMask;
+ XRRSelectInput (dpy, w, rr_mask);
}
}