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) {
case 'e':
case 'l':
case 's':
- mode = c;
+ mode = rc;
break;
case '0':
case '1':
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);