* bucomm.c (display_target_list): Make local variable `a' to be of
authorBen Elliston <bje@au.ibm.com>
Mon, 13 Mar 2006 22:27:22 +0000 (22:27 +0000)
committerBen Elliston <bje@au.ibm.com>
Mon, 13 Mar 2006 22:27:22 +0000 (22:27 +0000)
type enum bfd_architecture.  Thus no need to cast enums to int.
(display_info_table): Likewise.

binutils/ChangeLog
binutils/bucomm.c

index 21378d7de8c23557a442936a7b79bc2f66c29528..a168029d71c2559455c854b4edb3290265eeab5b 100644 (file)
@@ -1,3 +1,9 @@
+2006-03-13  Ben Elliston  <bje@au.ibm.com>
+
+       * bucomm.c (display_target_list): Make local variable `a' to be of
+       type enum bfd_architecture.  Thus no need to cast enums to int.
+       (display_info_table): Likewise.
+
 2006-03-10  Paul Brook  <paul@codesourcery.com>
 
        * readelf.c (decode_ARM_machine_flags):  Handle EABIv5.
index a2caa2f01c1307e7a33ff5057861bffbab55c73c..03a4d2873e2a325771c4f0fd82bf3c9c96ac3b65 100644 (file)
@@ -189,7 +189,7 @@ display_target_list (void)
     {
       const bfd_target *p = bfd_target_vector[t];
       bfd *abfd = bfd_openw (dummy_name, p->name);
-      int a;
+      enum bfd_architecture a;
 
       printf ("%s\n (header %s, data %s)\n", p->name,
              endian_string (p->header_byteorder),
@@ -213,7 +213,7 @@ display_target_list (void)
          continue;
        }
 
-      for (a = (int) bfd_arch_obscure + 1; a < (int) bfd_arch_last; a++)
+      for (a = bfd_arch_obscure + 1; a < bfd_arch_last; a++)
        if (bfd_set_arch_mach (abfd, (enum bfd_architecture) a, 0))
          printf ("  %s\n",
                  bfd_printable_arch_mach ((enum bfd_architecture) a, 0));
@@ -233,9 +233,9 @@ static int
 display_info_table (int first, int last)
 {
   int t;
-  int a;
   int ret = 1;
   char *dummy_name;
+  enum bfd_architecture a;
 
   /* Print heading of target names.  */
   printf ("\n%*s", (int) LONGEST_ARCH, " ");
@@ -244,7 +244,7 @@ display_info_table (int first, int last)
   putchar ('\n');
 
   dummy_name = make_temp_file (NULL);
-  for (a = (int) bfd_arch_obscure + 1; a < (int) bfd_arch_last; a++)
+  for (a = bfd_arch_obscure + 1; a < bfd_arch_last; a++)
     if (strcmp (bfd_printable_arch_mach (a, 0), "UNKNOWN!") != 0)
       {
        printf ("%*s ", (int) LONGEST_ARCH - 1,
This page took 0.031485 seconds and 4 git commands to generate.