If sysdep.h includes a header file, don't include it again:
authorIan Lance Taylor <ian@airs.com>
Thu, 7 May 1998 22:05:46 +0000 (22:05 +0000)
committerIan Lance Taylor <ian@airs.com>
Thu, 7 May 1998 22:05:46 +0000 (22:05 +0000)
* aix386-core.c: Don't include <stdio.h>, <stddef.h>, or
<errno.h>.
* aoutx.h: Don't include <string.h>.  Use "sysdep.h" rather than
<sysdep.h>.
* archive.c: Don't include <string.h> or <errno.h>.
* evax-alpha.c; Don't include <stdio.h>.
* evax-egsd.c: Likewise.
* evax-etir.c: Likewise.
* evax-misc.c: Likewise.
* evax-emh.c: Likewise.  Also, don't include <sys/types.h>.
* hppabsd-core.c: Don't include <stdio.h>, <sys/types.h>, or
<errno.h>.
* hpux-core.c: Likewise.
* netbsd-core.c: Likewise.
* som.c: Likewise.
* libbfd.c: Don't include <sys/types.h>.
* nlmcode.h: Don't include <string.h>.
* osf-core.c: Don't include <string.h> or <stdio.h>.
* ptrace-core.c: Don't include <stdio.h>, <sys/types.h>,
<errno.h>, or <unistd.h>.
* trad-core.c: Don't include <stdio.h> or <sys/types.h>.

bfd/ChangeLog
bfd/evax-alpha.c
bfd/evax-egsd.c
bfd/evax-emh.c
bfd/evax-etir.c
bfd/evax-misc.c

index fb202b4..efb6c42 100644 (file)
@@ -1,3 +1,30 @@
+Thu May  7 17:40:56 1998  Ian Lance Taylor  <ian@cygnus.com>
+
+       * filemode.c: Remove; not used.
+
+       If sysdep.h includes a header file, don't include it again:
+       * aix386-core.c: Don't include <stdio.h>, <stddef.h>, or
+       <errno.h>.
+       * aoutx.h: Don't include <string.h>.  Use "sysdep.h" rather than
+       <sysdep.h>.
+       * archive.c: Don't include <string.h> or <errno.h>.
+       * evax-alpha.c; Don't include <stdio.h>.
+       * evax-egsd.c: Likewise.
+       * evax-etir.c: Likewise.
+       * evax-misc.c: Likewise.
+       * evax-emh.c: Likewise.  Also, don't include <sys/types.h>.
+       * hppabsd-core.c: Don't include <stdio.h>, <sys/types.h>, or
+       <errno.h>.
+       * hpux-core.c: Likewise.
+       * netbsd-core.c: Likewise.
+       * som.c: Likewise.
+       * libbfd.c: Don't include <sys/types.h>.
+       * nlmcode.h: Don't include <string.h>.
+       * osf-core.c: Don't include <string.h> or <stdio.h>.
+       * ptrace-core.c: Don't include <stdio.h>, <sys/types.h>,
+       <errno.h>, or <unistd.h>.
+       * trad-core.c: Don't include <stdio.h> or <sys/types.h>.
+
 Thu May  7 13:12:50 1998  Klaus Kaempf  <kkaempf@progis.de>
 
        * configure.com: If the version number can not be found in
index 542901f..578e603 100644 (file)
@@ -17,9 +17,6 @@ You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
-
-#include <stdio.h>
-
 #include "bfd.h"
 #include "sysdep.h"
 #include "bfdlink.h"
index 25aebc4..567fe46 100644 (file)
@@ -1,5 +1,5 @@
 /* evax-egsd.c -- BFD back-end for ALPHA EVAX (openVMS/Alpha) files.
-   Copyright 1996, 1997 Free Software Foundation Inc.
+   Copyright 1996, 1997, 1998 Free Software Foundation Inc.
 
    go and read the openVMS linker manual (esp. appendix B)
    if you don't know what's going on here :-)
@@ -22,7 +22,6 @@ along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
 
-#include <stdio.h>
 #include <ctype.h>
 
 #include "bfd.h"
index 590fb81..79a63d2 100644 (file)
@@ -1,5 +1,5 @@
 /* evax-emh.c -- BFD back-end for ALPHA EVAX (openVMS/Alpha) files.
-   Copyright 1996, 1997 Free Software Foundation, Inc.
+   Copyright 1996, 1997, 1998 Free Software Foundation, Inc.
 
    EMH record handling functions
    and
@@ -22,7 +22,6 @@ You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
-#include <stdio.h>
 #include <ctype.h>
 
 #include "bfd.h"
@@ -137,7 +136,6 @@ get_vms_time_string ()
 {
   static unsigned char tbuf[18];
 #ifndef VMS
-#include <sys/types.h>
 #include <time.h>
 
   char *pnt;
index 4989baa..3f7339b 100644 (file)
@@ -1,5 +1,5 @@
 /* evax-etir.c -- BFD back-end for ALPHA EVAX (openVMS/Alpha) files.
-   Copyright 1996, 1997 Free Software Foundation, Inc.
+   Copyright 1996, 1997, 1998 Free Software Foundation, Inc.
    ETIR record handling functions
 
    go and read the openVMS linker manual (esp. appendix B)
@@ -32,7 +32,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
        qw      quadword (8 byte, 64 bit)
        da      data stream  */
 
-#include <stdio.h>
 #include <ctype.h>
 
 #include "bfd.h"
index 856bb6e..4dc74ed 100644 (file)
@@ -1,5 +1,5 @@
 /* evax-misc.c -- Miscellaneous functions for ALPHA EVAX (openVMS/Alpha) files.
-   Copyright 1996, 1997 Free Software Foundation, Inc.
+   Copyright 1996, 1997, 1998 Free Software Foundation, Inc.
 
    Written by Klaus K"ampf (kkaempf@progis.de)
    of proGIS Softwareentwicklung, Aachen, Germany
@@ -22,7 +22,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #if __STDC__
 #include <stdarg.h>
 #endif
-#include <stdio.h>
 
 #include "bfd.h"
 #include "sysdep.h"