]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* opncls.c (bfd_fdopenr): Add missing break statements.
authorMark Mitchell <mark@codesourcery.com>
Wed, 8 Jun 2005 00:04:04 +0000 (00:04 +0000)
committerMark Mitchell <mark@codesourcery.com>
Wed, 8 Jun 2005 00:04:04 +0000 (00:04 +0000)
bfd/opncls.c

index 5dca3e16ec4c865f7f09925cf9ab3c0f8acd2f85..ab20aa19b1383758205fb68a9d55c8d2ab552227 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