[rtems commit] posix: clarify expression with parentheses
Gedare Bloom
gedare at rtems.org
Tue May 16 15:37:59 UTC 2017
Module: rtems
Branch: master
Commit: a330c5dc246eb902a8191c9c7bd50eb76254b001
Changeset: http://git.rtems.org/rtems/commit/?id=a330c5dc246eb902a8191c9c7bd50eb76254b001
Author: Gedare Bloom <gedare at rtems.org>
Date: Tue May 16 11:37:27 2017 -0400
posix: clarify expression with parentheses
Close #3010.
---
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 9f555ad..5b6ac2e 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;
}
More information about the vc
mailing list