OSDN Git Service

* opncls.c (bfd_fdopenr): Add missing break statements.
authormmitchel <mmitchel>
Tue, 7 Jun 2005 23:59:59 +0000 (23:59 +0000)
committermmitchel <mmitchel>
Tue, 7 Jun 2005 23:59:59 +0000 (23:59 +0000)
bfd/ChangeLog
bfd/opncls.c

index 1845735..23a15ef 100644 (file)
@@ -1,5 +1,9 @@
 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.
        (bfd_openr): Use it.
        (bfd_fdopenr): Likewise.
index e675510..74bee57 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