diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-02-10 19:10:57 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-02-10 19:10:57 -0800 |
commit | f08b3613b2fd6995da264ea0a39c6d48dd28bf97 (patch) | |
tree | a325c9978449e8300f83cec65dc895fd9421cd14 | |
parent | 97db6f80f06b753c84de0276db093205ee34b0b0 (diff) |
Rename i & count in inner loop to avoid shadowing same named vars in outer loop
xdpyinfo.c: In function `print_dmx_info':
xdpyinfo.c:1282: warning: declaration of 'count' shadows a previous local
xdpyinfo.c:1231: warning: shadowed declaration is here
xdpyinfo.c:1282: warning: declaration of 'i' shadows a previous local
xdpyinfo.c:1232: warning: shadowed declaration is here
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | xdpyinfo.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1279,15 +1279,15 @@ static int print_dmx_info(Display *dpy, const char *extname) if (ext && ext != (XExtensionVersion *)NoSuchExtension) { - int count, i; + int dcount, d; XDeviceInfo *devInfo = XListInputDevices(backend, - &count); + &dcount); if (devInfo) { - for (i = 0; i < count; i++) { + for (d = 0; d < dcount; d++) { if ((unsigned)iinfo.physicalId - == devInfo[i].id - && devInfo[i].name) { - backendname = strdup(devInfo[i].name); + == devInfo[d].id + && devInfo[d].name) { + backendname = strdup(devInfo[d].name); break; } } |