diff options
author | 2001-05-11 15:51:59 +0000 | |
---|---|---|
committer | 2001-05-11 15:51:59 +0000 | |
commit | 147b418e109d0f3515fc9c450edb6d86537a9979 (patch) | |
tree | a73be92432a135eaa48678183ae88c6523f64db9 | |
parent | -1 -> MAP_FAILED (diff) | |
download | wireguard-openbsd-147b418e109d0f3515fc9c450edb6d86537a9979.tar.xz wireguard-openbsd-147b418e109d0f3515fc9c450edb6d86537a9979.zip |
MAP_FAILED, not NULL
-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); } |