summaryrefslogtreecommitdiff
path: root/libiberty/mpw.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-11-19 21:17:54 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-11-19 21:17:54 +0000
commit9fdb1080e6a3fe2d0eee6d6a4d0207ee37ee04ba (patch)
treedf7ce928ede4a03604fd30a9122e02ae379e50ab /libiberty/mpw.c
parent7b8b8d43426469cf3def3c44d0931876c48190ac (diff)
downloadgcc-9fdb1080e6a3fe2d0eee6d6a4d0207ee37ee04ba.tar.gz
* mpw.c (mpw_access): Add missing parens.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23726 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty/mpw.c')
-rw-r--r--libiberty/mpw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libiberty/mpw.c b/libiberty/mpw.c
index 59c06ba3950..ca3ae412d25 100644
--- a/libiberty/mpw.c
+++ b/libiberty/mpw.c
@@ -705,9 +705,9 @@ mpw_access (char *filename, unsigned int cmd)
errnum = errno;
if (rslt >= 0)
{
- if (((st.st_mode & 004 == 0) && (cmd & R_OK))
- || ((st.st_mode & 002 == 0) && (cmd & W_OK))
- || ((st.st_mode & 001 == 0) && (cmd & X_OK)))
+ if ((((st.st_mode & 004) == 0) && (cmd & R_OK))
+ || (((st.st_mode & 002) == 0) && (cmd & W_OK))
+ || (((st.st_mode & 001) == 0) && (cmd & X_OK)))
{
rslt = -1;
errnum = EACCES;