From e00ce665345833eb659d7e4c988d183436f7ed47 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Thu, 12 Sep 2002 04:09:32 +0000 Subject: a grammar in err msgs and a tiny formating fix --- regress/sys/kern/mmap2/mmaptest.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'regress/sys/kern') 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 , 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"); -- cgit v1.2.3