aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2001-01-14 06:12:07 +0000
committerAlan Modra <amodra@gmail.com>2001-01-14 06:12:07 +0000
commitd768008d61d1d6b5d437d6f5f5546a7ce953ff1c (patch)
tree7a2400370320fd893fee2ca955687c361ce16e78 /bfd
parent150ccafb7a737cd7678df713dc39760b79f9fc4e (diff)
downloadgdb-d768008d61d1d6b5d437d6f5f5546a7ce953ff1c.zip
gdb-d768008d61d1d6b5d437d6f5f5546a7ce953ff1c.tar.gz
gdb-d768008d61d1d6b5d437d6f5f5546a7ce953ff1c.tar.bz2
Add parens like the comment says.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog3
-rw-r--r--bfd/opncls.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index e0308b9..7c32439 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,8 @@
2001-01-14 Alan Modra <alan@linuxcare.com.au>
+ * opncls.c (bfd_fdopenr): Add parens like the comment says around
+ O_ACCMODE.
+
* elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
.plt entries for DT_INIT and DT_FINI.
(elf32_hppa_finish_dynamic_sections): Remove special handling of
diff --git a/bfd/opncls.c b/bfd/opncls.c
index 57ca0d0..39947da 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;