From dfab97d66b00a27c427ff3ee74fc598f5c873383 Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Wed, 8 Jun 2005 00:00:05 +0000 Subject: [PATCH] * opncls.c (bfd_fdopenr): Add missing break statements. --- bfd/ChangeLog | 4 ++++ bfd/opncls.c | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 18457359225..23a15efd0b0 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2005-06-07 Mark Mitchell + + * opncls.c (bfd_fdopenr): Add missing break statements. + 2005-06-07 Mark Mitchell * opncls.c (bfd_fopen): New API. diff --git a/bfd/opncls.c b/bfd/opncls.c index e6755109c5a..74bee5777ae 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 -- 2.30.2