aboutsummaryrefslogtreecommitdiff
path: root/bfd/opncls.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2005-06-08 00:00:05 +0000
committerMark Mitchell <mark@codesourcery.com>2005-06-08 00:00:05 +0000
commitdfab97d66b00a27c427ff3ee74fc598f5c873383 (patch)
tree5e6b64d8a508a06ed8cb28ba70309e6d8349a896 /bfd/opncls.c
parenta34e3ecb6932964574f82978a90c77e973338127 (diff)
downloadgdb-dfab97d66b00a27c427ff3ee74fc598f5c873383.zip
gdb-dfab97d66b00a27c427ff3ee74fc598f5c873383.tar.gz
gdb-dfab97d66b00a27c427ff3ee74fc598f5c873383.tar.bz2
* opncls.c (bfd_fdopenr): Add missing break statements.
Diffstat (limited to 'bfd/opncls.c')
-rw-r--r--bfd/opncls.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/opncls.c b/bfd/opncls.c
index e675510..74bee57 100644
--- a/bfd/opncls.c
+++ b/bfd/opncls.c
@@ -280,9 +280,9 @@ bfd_fdopenr (const char *filename, const char *target, int fd)
/* (O_ACCMODE) parens are to avoid Ultrix header file bug. */
switch (fdflags & (O_ACCMODE))
{
- case O_RDONLY: mode = FOPEN_RB;
- case O_WRONLY: mode = FOPEN_RUB;
- case O_RDWR: mode = FOPEN_RUB;
+ case O_RDONLY: mode = FOPEN_RB; break;
+ case O_WRONLY: mode = FOPEN_RUB; break;
+ case O_RDWR: mode = FOPEN_RUB; break;
default: abort ();
}
#endif