OSDN Git Service

Get rid of false/FALSE and true/TRUE usage so we work with all versions of
authorDavid McCullough <davidm@snapgear.com>
Mon, 14 Jul 2003 00:19:02 +0000 (00:19 +0000)
committerDavid McCullough <davidm@snapgear.com>
Mon, 14 Jul 2003 00:19:02 +0000 (00:19 +0000)
the binutils.  Patch from Bernardo Innocenti <bernie@develer.com>.

elf2flt.c

index 3f7cede..4453392 100644 (file)
--- a/elf2flt.c
+++ b/elf2flt.c
@@ -1305,9 +1305,9 @@ int main(int argc, char *argv[])
   /* Read in all text sections.  */
   for (s = abs_bfd->sections; s != NULL; s = s->next)
     if (s->flags & SEC_CODE) 
-      if (bfd_get_section_contents(abs_bfd, s,
+      if (!bfd_get_section_contents(abs_bfd, s,
                                   text + (s->vma - text_vma), 0,
-                                  s->_raw_size) == false)
+                                  s->_raw_size))
       {
        fprintf(stderr, "read error section %s\n", s->name);
        exit(2);
@@ -1336,9 +1336,9 @@ int main(int argc, char *argv[])
   /* Read in all data sections.  */
   for (s = abs_bfd->sections; s != NULL; s = s->next)
     if (s->flags & SEC_DATA) 
-      if (bfd_get_section_contents(abs_bfd, s,
+      if (!bfd_get_section_contents(abs_bfd, s,
                                   data + (s->vma - data_vma), 0,
-                                  s->_raw_size) == false)
+                                  s->_raw_size))
       {
        fprintf(stderr, "read error section %s\n", s->name);
        exit(2);