From e1c0754735487c848c810dc40d3154463262b7f9 Mon Sep 17 00:00:00 2001 From: adilger Date: Thu, 15 May 2003 17:01:48 +0000 Subject: [PATCH] Merge b_devel (ORPHAN_BASE6 -> ORPHAN_BASE7) to b_orphan (DEVEL_ORPHAN_UPDATE_CHILD_20030514). --- lustre/tests/writeme.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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; } -- 1.8.3.1