summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGedare Bloom <gedare@rtems.org>2017-05-16 11:37:27 -0400
committerGedare Bloom <gedare@rtems.org>2017-05-16 11:37:27 -0400
commita330c5dc246eb902a8191c9c7bd50eb76254b001 (patch)
treebb81d677e910437b5a915d619de8487d58029a46
parentconfdefs.h: Add SMP enabled field to configuration (diff)
downloadrtems-a330c5dc246eb902a8191c9c7bd50eb76254b001.tar.bz2
posix: clarify expression with parentheses
Close #3010.
-rw-r--r--cpukit/posix/src/mmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/posix/src/mmap.c b/cpukit/posix/src/mmap.c
index 9f555ade92..5b6ac2e209 100644
--- a/cpukit/posix/src/mmap.c
+++ b/cpukit/posix/src/mmap.c
@@ -186,7 +186,7 @@ void *mmap(
errno = EINVAL;
return MAP_FAILED;
}
- } else if ( (flags & MAP_PRIVATE != MAP_PRIVATE) ) {
+ } else if ( (flags & MAP_PRIVATE) != MAP_PRIVATE ) {
errno = EINVAL;
return MAP_FAILED;
}