s/struct _serial_t/struct serial/
[deliverable/binutils-gdb.git] / bfd / opncls.c
index 8f10135d267b855b098c0ca021d209e69bb8d21d..0c3d2c9a8a10859131dccfd06c0762269a6fad93 100644 (file)
@@ -1,5 +1,6 @@
 /* opncls.c -- open and close a BFD.
-   Copyright (C) 1990, 91, 92, 93, 94, 95, 96, 1997
+   Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2000,
+   2001
    Free Software Foundation, Inc.
 
    Written by Cygnus Support.
@@ -248,7 +249,7 @@ bfd_fdopenr (filename, target, fd)
      be written through, although doing so requires that we end
      the previous clause with a preposition.  */
   /* (O_ACCMODE) parens are to avoid Ultrix header file bug */
-  switch (fdflags & O_ACCMODE)
+  switch (fdflags & (O_ACCMODE))
     {
     case O_RDONLY: nbfd->direction = read_direction; break;
     case O_WRONLY: nbfd->direction = write_direction; break;
@@ -486,7 +487,7 @@ bfd_close_all_done (abfd)
          int mask = umask (0);
          umask (mask);
          chmod (abfd->filename,
-                (0x777
+                (0777
                  & (buf.st_mode | ((S_IXUSR | S_IXGRP | S_IXOTH) &~ mask))));
        }
     }
This page took 0.023699 seconds and 4 git commands to generate.