* opncls.c (bfd_fdopenr): Add missing break statements.
authorMark Mitchell <mark@codesourcery.com>
Wed, 8 Jun 2005 00:00:05 +0000 (00:00 +0000)
committerMark Mitchell <mark@codesourcery.com>
Wed, 8 Jun 2005 00:00:05 +0000 (00:00 +0000)
bfd/ChangeLog
bfd/opncls.c

index 18457359225cbf3d9ca2af8e5ef688929bf3aa11..23a15efd0b069744ea5d214cc31c7aef119dd6bf 100644 (file)
@@ -1,3 +1,7 @@
+2005-06-07  Mark Mitchell  <mark@codesourcery.com>
+
+       * opncls.c (bfd_fdopenr): Add missing break statements.
+
 2005-06-07  Mark Mitchell  <mark@codesourcery.com>
 
        * opncls.c (bfd_fopen): New API.
index e6755109c5a1ad9b270b79d67a3358a9c208129a..74bee5777aea9eea4c5206973a233c1a169bfacd 100644 (file)
@@ -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
This page took 0.029449 seconds and 4 git commands to generate.