diff options
-rw-r--r-- | src/regress/lib/libc/mkstemp/mkstemp_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/regress/lib/libc/mkstemp/mkstemp_test.c b/src/regress/lib/libc/mkstemp/mkstemp_test.c index ef973b061b..c1c05eae39 100644 --- a/src/regress/lib/libc/mkstemp/mkstemp_test.c +++ b/src/regress/lib/libc/mkstemp/mkstemp_test.c | |||
@@ -122,7 +122,7 @@ main(void) | |||
122 | cwd[clen++] = '/'; | 122 | cwd[clen++] = '/'; |
123 | cwd[clen] = '\0'; | 123 | cwd[clen] = '\0'; |
124 | p = mmap(NULL, pg * 3, PROT_READ | PROT_WRITE, MAP_ANON, -1, 0); | 124 | p = mmap(NULL, pg * 3, PROT_READ | PROT_WRITE, MAP_ANON, -1, 0); |
125 | if (p == NULL) | 125 | if (p == MAP_FAILED) |
126 | err(1, "mmap"); | 126 | err(1, "mmap"); |
127 | if (mprotect(p, pg, PROT_NONE) || mprotect(p + pg * 2, pg, PROT_NONE)) | 127 | if (mprotect(p, pg, PROT_NONE) || mprotect(p + pg * 2, pg, PROT_NONE)) |
128 | err(1, "mprotect"); | 128 | err(1, "mprotect"); |