]> git.wh0rd.org Git - elf2flt.git/commitdiff
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 3f7cede483b0c38199692610145d9d7d6a67c6df..44533920b10294e8e118bb34abc23c39c8bf7f74 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);