From: pschwan Date: Sun, 4 May 2003 20:19:28 +0000 (+0000) Subject: partial merge from b_open into b_devel: X-Git-Tag: v1_7_100~1^97~43 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=3bee5e739783484cd01dc1c4f4ecbc0febbb27b0;p=fs%2Flustre-release.git 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 --- 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; }