summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2002-09-11 23:41:24 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2002-09-11 23:41:24 +0000
commitc6f01461a460bfd4983e5281b3d7ccf9fcecba85 (patch)
tree5e2e0258075c95b77667213415f551287ce4a397
parente6abbd4ef81ae15fd7ff7af9cf86c97d1fa313c8 (diff)
errx is a proper function here
-rw-r--r--regress/sys/kern/mmap2/mmaptest.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/regress/sys/kern/mmap2/mmaptest.c b/regress/sys/kern/mmap2/mmaptest.c
index 08829331793..94cc19c414a 100644
--- a/regress/sys/kern/mmap2/mmaptest.c
+++ b/regress/sys/kern/mmap2/mmaptest.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mmaptest.c,v 1.3 2002/02/18 15:24:18 art Exp $ */
+/* $OpenBSD: mmaptest.c,v 1.4 2002/09/11 23:41:23 mickey Exp $ */
/*
* Written by Artur Grabowski <art@openbsd.org>, 2001 Public Domain
*/
@@ -55,13 +55,13 @@ main()
memcpy(v1, MAGIC, sizeof(MAGIC));
if (memcmp(v2, MAGIC, sizeof(MAGIC)) != 0)
- err(1, "comparsion 1 failed");
+ errx(1, "comparsion 1 failed");
if (memcmp(v1, v2, sizeof(MAGIC)) != 0)
- err(1, "comparsion 2 failed");
+ errx(1, "comparsion 2 failed");
if (munmap(v1, 2 * page_size) < 0)
- err(1, "munmap");
+ errx(1, "munmap");
close(fd);