From: adilger Date: Thu, 15 May 2003 17:01:48 +0000 (+0000) Subject: Merge b_devel (ORPHAN_BASE6 -> ORPHAN_BASE7) to X-Git-Tag: v1_7_100~1^103~87 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=e1c0754735487c848c810dc40d3154463262b7f9;p=fs%2Flustre-release.git Merge b_devel (ORPHAN_BASE6 -> ORPHAN_BASE7) to b_orphan (DEVEL_ORPHAN_UPDATE_CHILD_20030514). --- diff --git a/lustre/tests/writeme.c b/lustre/tests/writeme.c index ab8692f..a376063 100644 --- a/lustre/tests/writeme.c +++ b/lustre/tests/writeme.c @@ -6,27 +6,27 @@ int main(int argc, char **argv) { - int fd, rc; + int fd, rc; int i = 0; char buf[4096]; - + memset(buf, 0, 4096); - if (argc != 2) { - printf("Usage openme \n"); + if (argc != 2) { + printf("Usage: %s \n", argv[0]); exit(1); } fd = open(argv[1], O_RDWR | O_CREAT, 0600); - if (fd == -1) { + if (fd == -1) { printf("Error opening %s\n", argv[1]); exit(1); } - while (1) { - sprintf(buf, "write %d\n", i); - rc = write(fd, buf, sizeof(buf)); - sleep(1); + while (1) { + sprintf(buf, "write %d\n", i); + rc = write(fd, buf, sizeof(buf)); + sleep(1); } return 0; }