diff options
Diffstat (limited to 'xdriinfo.c')
-rw-r--r-- | xdriinfo.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -58,7 +58,7 @@ void printUsage (void) { int main (int argc, char *argv[]) { Display *dpy; - int nScreens, screenNum, i; + int nScreens, screenNum; enum INFO_FUNC func = LIST; char *funcArg = NULL; char *dpyName = NULL; @@ -71,7 +71,7 @@ int main (int argc, char *argv[]) { } /* parse the command line */ - for (i = 1; i < argc; ++i) { + for (int i = 1; i < argc; ++i) { char **argPtr = NULL; if (!strcmp (argv[i], "-display")) argPtr = &dpyName; @@ -179,7 +179,7 @@ int main (int argc, char *argv[]) { break; } case LIST: - for (i = 0; i < nScreens; ++i) { + for (int i = 0; i < nScreens; ++i) { const char *name = (*GetScreenDriver) (dpy, i); if (name) printf ("Screen %d: %s\n", i, name); |