summaryrefslogtreecommitdiff
path: root/regress/sys/kern
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2002-09-12 04:09:32 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2002-09-12 04:09:32 +0000
commite00ce665345833eb659d7e4c988d183436f7ed47 (patch)
treebad7971e1f89fca834d1769eee14937877a1a708 /regress/sys/kern
parentda6f501ea51f976a2257c7085bae59af0cdc30c3 (diff)
a grammar in err msgs and a tiny formating fix
Diffstat (limited to 'regress/sys/kern')
-rw-r--r--regress/sys/kern/mmap2/mmaptest.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/regress/sys/kern/mmap2/mmaptest.c b/regress/sys/kern/mmap2/mmaptest.c
index 94cc19c414a..12e08b65a29 100644
--- a/regress/sys/kern/mmap2/mmaptest.c
+++ b/regress/sys/kern/mmap2/mmaptest.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mmaptest.c,v 1.4 2002/09/11 23:41:23 mickey Exp $ */
+/* $OpenBSD: mmaptest.c,v 1.5 2002/09/12 04:09:31 mickey Exp $ */
/*
* Written by Artur Grabowski <art@openbsd.org>, 2001 Public Domain
*/
@@ -41,7 +41,8 @@ main()
/* map two pages, then map the first page over the second */
- v1 = mmap(NULL, 2 * page_size, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0);
+ v1 = mmap(NULL, 2 * page_size, PROT_READ|PROT_WRITE,
+ MAP_SHARED, fd, 0);
if (v1 == MAP_FAILED)
err(1, "mmap 1");
@@ -55,10 +56,10 @@ main()
memcpy(v1, MAGIC, sizeof(MAGIC));
if (memcmp(v2, MAGIC, sizeof(MAGIC)) != 0)
- errx(1, "comparsion 1 failed");
+ errx(1, "comparison 1 failed");
if (memcmp(v1, v2, sizeof(MAGIC)) != 0)
- errx(1, "comparsion 2 failed");
+ errx(1, "comparison 2 failed");
if (munmap(v1, 2 * page_size) < 0)
errx(1, "munmap");