Browse Source

* opncls.c (bfd_fdopenr): Add missing break statements.

gdb-csl-arm-20051020-branch
Mark Mitchell 22 years ago
parent
commit
dfab97d66b
  1. 4
      bfd/ChangeLog
  2. 6
      bfd/opncls.c

4
bfd/ChangeLog

@ -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.

6
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

Loading…
Cancel
Save