Whamcloud - gitweb
LU-613 clio: Client dead-lock during binary exec
[fs/lustre-release.git] / lustre / tests / writeme.c
index 837552d..577fcfe 100644 (file)
@@ -48,9 +48,8 @@ void usage(char *prog)
 int main(int argc, char **argv)
 {
         int fd, rc;
-       int do_sync = 0;
-        int i = 0;
-       int file_arg = 1;
+        int do_sync = 0;
+        int file_arg = 1;
         char buf[4096];
 
         memset(buf, 0, 4096);
@@ -71,8 +70,8 @@ int main(int argc, char **argv)
                 exit(1);
         }
 
-        while (1) {
-                sprintf(buf, "write %d\n", i);
+        for (rc = 0; ;) {
+                sprintf(buf, "write %d\n", rc);
                 rc = write(fd, buf, sizeof(buf));
                if (do_sync)
                        sync();