[PATCH 2/2] posix: Return error code if mmap is used

Daniel Cederman cederman at gaisler.com
Thu Mar 12 08:04:21 UTC 2015


---
 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;
 }
-- 
2.2.1




More information about the devel mailing list