From: shaver Date: Sat, 26 Jul 2003 03:28:16 +0000 (+0000) Subject: Jacob schooled me. X-Git-Tag: v1_7_0_51~2^14~17 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=b0440d9bdeaf089d64f93d1cf81d6c23ee7d1d23;p=fs%2Flustre-release.git Jacob schooled me. --- diff --git a/lustre/tests/multiop.c b/lustre/tests/multiop.c index 95d45f4..1e69f0e 100755 --- a/lustre/tests/multiop.c +++ b/lustre/tests/multiop.c @@ -40,9 +40,8 @@ int main(int argc, char **argv) signal(SIGUSR1, null_handler); fname = argv[1]; - commands = argv[2]; - while (*commands) { + for (commands = argv[2]; *commands; commands++) { switch (*commands) { case 'o': fd = open(fname, O_RDONLY); @@ -96,8 +95,6 @@ int main(int argc, char **argv) fprintf(stderr, usage, argv[0]); exit(1); } - - commands++; } return 0;