summaryrefslogtreecommitdiff
path: root/bfd/opncls.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2001-01-14 06:12:07 +0000
committerAlan Modra <amodra@bigpond.net.au>2001-01-14 06:12:07 +0000
commit591bfaf9475799d1e8c4eaae4929be2d0591aa70 (patch)
tree7e51d9e4ec0efdbf659fad3e54a9398cba563dc0 /bfd/opncls.c
parent71ce70914eaec6b213aaf754bc3b0c433b784ba3 (diff)
downloadgdb-591bfaf9475799d1e8c4eaae4929be2d0591aa70.tar.gz
Add parens like the comment says.
Diffstat (limited to 'bfd/opncls.c')
-rw-r--r--bfd/opncls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/opncls.c b/bfd/opncls.c
index 57ca0d0a259..39947dadb4a 100644
--- a/bfd/opncls.c
+++ b/bfd/opncls.c
@@ -1,5 +1,5 @@
/* opncls.c -- open and close a BFD.
- Copyright (C) 1990, 91, 92, 93, 94, 95, 96, 1997
+ Copyright (C) 1990, 91, 92, 93, 94, 95, 96, 1997, 2001
Free Software Foundation, Inc.
Written by Cygnus Support.
@@ -248,7 +248,7 @@ bfd_fdopenr (filename, target, fd)
be written through, although doing so requires that we end
the previous clause with a preposition. */
/* (O_ACCMODE) parens are to avoid Ultrix header file bug */
- switch (fdflags & O_ACCMODE)
+ switch (fdflags & (O_ACCMODE))
{
case O_RDONLY: nbfd->direction = read_direction; break;
case O_WRONLY: nbfd->direction = write_direction; break;