diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-05-11 15:52:00 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-05-11 15:52:00 +0000 |
commit | bc894e0ef2cb59d34ea31a3981db829231c46c64 (patch) | |
tree | 72d5f329fcc9b13a2b0b295bbdb751e0d434df05 /regress/sys | |
parent | c15c510b0a30c10cddac32042b27cf4352cf1196 (diff) |
MAP_FAILED, not NULL
Diffstat (limited to 'regress/sys')
-rw-r--r-- | regress/sys/arch/i386/ldt/testldt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/sys/arch/i386/ldt/testldt.c b/regress/sys/arch/i386/ldt/testldt.c index 1106314ea43..ec33335f430 100644 --- a/regress/sys/arch/i386/ldt/testldt.c +++ b/regress/sys/arch/i386/ldt/testldt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: testldt.c,v 1.3 2001/01/29 02:05:51 niklas Exp $ */ +/* $OpenBSD: testldt.c,v 1.4 2001/05/11 15:51:59 art Exp $ */ /* $NetBSD: testldt.c,v 1.4 1995/04/20 22:42:38 cgd Exp $ */ #include <stdio.h> @@ -198,7 +198,7 @@ main(int argc, char *argv[]) data = (void *) mmap( (char *)0x005f0000, 0x0fff, PROT_EXEC | PROT_READ | PROT_WRITE, MAP_FIXED | MAP_PRIVATE | MAP_ANON, -1, 0); - if (data == NULL) { + if (data == MAP_FAILED) { perror("mmap"); exit(1); } |