sim: frv: fix up various missing prototype warnings
[binutils-gdb.git] / binutils / bucomm.c
index 0499007c58c1891fc8d580c639d268031d1e78f3..8ce66ab8cce7b6520ff7f3cada33fb7632c64a3f 100644 (file)
 #include "bfd.h"
 #include "libiberty.h"
 #include "filenames.h"
-
-#include <time.h>              /* ctime, maybe time_t */
+#include <time.h>
 #include <assert.h>
 #include "bucomm.h"
-
-#ifndef HAVE_TIME_T_IN_TIME_H
-#ifndef HAVE_TIME_T_IN_TYPES_H
-typedef long time_t;
-#endif
-#endif
 \f
 /* Error reporting.  */
 
@@ -435,7 +428,7 @@ display_info (void)
    Mode       User\tGroup\tSize\tDate               Name */
 
 void
-print_arelt_descr (FILE *file, bfd *abfd, bfd_boolean verbose, bfd_boolean offsets)
+print_arelt_descr (FILE *file, bfd *abfd, bool verbose, bool offsets)
 {
   struct stat buf;
 
@@ -626,8 +619,8 @@ get_file_size (const char * file_name)
 #if defined (_WIN32) && !defined (__CYGWIN__)
   else if (statbuf.st_size == 0)
     {
-      /* MS-Windows 'stat' doesn't reports the null device as a
-        regular file; fix that.  */
+      /* MS-Windows 'stat' reports the null device as a regular file;
+        fix that.  */
       int fd = open (file_name, O_RDONLY | O_BINARY);
       if (isatty (fd))
        {
@@ -677,18 +670,18 @@ bfd_get_archive_filename (const bfd *abfd)
    is valid for writing.  For security reasons absolute paths
    and paths containing /../ are not allowed.  See PR 17533.  */
 
-bfd_boolean
+bool
 is_valid_archive_path (char const * pathname)
 {
   const char * n = pathname;
 
   if (IS_ABSOLUTE_PATH (n))
-    return FALSE;
+    return false;
 
   while (*n)
     {
       if (*n == '.' && *++n == '.' && ( ! *++n || IS_DIR_SEPARATOR (*n)))
-       return FALSE;
+       return false;
 
       while (*n && ! IS_DIR_SEPARATOR (*n))
        n++;
@@ -696,5 +689,5 @@ is_valid_archive_path (char const * pathname)
        n++;
     }
 
-  return TRUE;
+  return true;
 }