Whamcloud - gitweb
b=15534
[fs/lustre-release.git] / lustre / tests / statmany.c
index 7c60418..3e24cdf 100644 (file)
@@ -77,16 +77,16 @@ static int usage(char *prog, FILE *out)
 
 int main(int argc, char ** argv)
 {
-        long i, c, count, iter = LONG_MAX, mode = 0, offset;
-        long int start, length = LONG_MAX, last, rc = 0;
+        long i, count, iter = LONG_MAX, mode = 0, offset;
+        long int start, length = LONG_MAX, last;
         char parent[4096], *t;
        char *prog = argv[0], *base;
-       int seed = 0;
+       int seed = 0, rc;
        int fd = -1;
 
-       while ((c = getopt_long(argc, argv, shortopts, longopts, NULL)) != -1) {
+       while ((rc = getopt_long(argc, argv, shortopts, longopts, NULL)) != -1) {
                char *e;
-               switch (c) {
+               switch (rc) {
                case 'r':
                        seed = strtoul(optarg, &e, 0);
                        if (*e) {
@@ -97,7 +97,7 @@ int main(int argc, char ** argv)
                case 'e':
                case 'l':
                case 's':
-                       mode = c;
+                       mode = rc;
                        break;
                case '0':
                case '1':
@@ -110,9 +110,9 @@ int main(int argc, char ** argv)
                case '8':
                case '9':
                        if (length == LONG_MAX)
-                               length = c - '0';
+                               length = rc - '0';
                        else
-                               length = length * 10 + (c - '0');
+                               length = length * 10 + (rc - '0');
                        break;
                case 'h':
                        usage(prog, stdout);