summaryrefslogtreecommitdiff
path: root/xdpyinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'xdpyinfo.c')
-rw-r--r--xdpyinfo.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/xdpyinfo.c b/xdpyinfo.c
index 655d672..def5ee6 100644
--- a/xdpyinfo.c
+++ b/xdpyinfo.c
@@ -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;
}
}