X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Ftests%2Fstatmany.c;h=586a0bb913cc5e16fbde0baf8ff2c1300c7f8666;hp=7c60418901779ae4a36386b94e471cdd096c7f62;hb=0bc62d07deb464bfcb486e917a68c6a2dd907e35;hpb=6869932b552ac705f411de3362f01bd50c1f6f7d diff --git a/lustre/tests/statmany.c b/lustre/tests/statmany.c index 7c60418..586a0bb 100644 --- a/lustre/tests/statmany.c +++ b/lustre/tests/statmany.c @@ -26,7 +26,7 @@ * GPL HEADER END */ /* - * Copyright 2008 Sun Microsystems, Inc. All rights reserved + * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. * Use is subject to license terms. */ /* @@ -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);