From deeb5ce22e9e95abe865b01f1b43c58b2a1500c6 Mon Sep 17 00:00:00 2001
From: David McCullough <davidm@snapgear.com>
Date: Mon, 14 Jul 2003 00:19:02 +0000
Subject: [PATCH] Get rid of false/FALSE and true/TRUE usage so we work with
 all versions of the binutils.  Patch from Bernardo Innocenti
 <bernie@develer.com>.

---
 elf2flt.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/elf2flt.c b/elf2flt.c
index 3f7cede..4453392 100644
--- 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);
-- 
2.39.5