From 3bee5e739783484cd01dc1c4f4ecbc0febbb27b0 Mon Sep 17 00:00:00 2001 From: pschwan Date: Sun, 4 May 2003 20:19:28 +0000 Subject: [PATCH] partial merge from b_open into b_devel: - include path update in archdep.m4 - remove extra OBD_SLAB_ALLOC/FREE from liblustre.h - various small whitespace and compile warning fixes - debug changes to acceptance-small - add cvs tests to sanity; cvs is good at breaking our stuff, it seems --- 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