[rtems commit] posix: Return error code if mmap is used
Gedare Bloom
gedare at rtems.org
Thu Mar 12 14:02:41 UTC 2015
Module: rtems
Branch: master
Commit: b0f8bb4eec79104c126258d8248cac9c554a40b6
Changeset: http://git.rtems.org/rtems/commit/?id=b0f8bb4eec79104c126258d8248cac9c554a40b6
Author: Daniel Cederman <cederman at gaisler.com>
Date: Thu Mar 12 09:04:21 2015 +0100
posix: Return error code if mmap is used
---
cpukit/posix/src/mmap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cpukit/posix/src/mmap.c b/cpukit/posix/src/mmap.c
index 3ebb2f4..90c6d0a 100644
--- a/cpukit/posix/src/mmap.c
+++ b/cpukit/posix/src/mmap.c
@@ -26,5 +26,5 @@ void *mmap(
off_t off
)
{
- return NULL;
+ return MAP_FAILED;
}
More information about the vc
mailing list