From 8b9773776868bf28698d15edb0ea1e78424c12b7 Mon Sep 17 00:00:00 2001 From: Fred Fish Date: Thu, 5 Aug 1993 17:22:58 +0000 Subject: * nlmcode.h (nlm_get_reloc_upper_bound): Test return value of nlm_slurp_symbol_table as boolean, not pointer. * nlmcode.h (nlm_canonicalize_reloc): Test return value of nlm_slurp_reloc_fixups as boolean, not pointer. --- bfd/ChangeLog | 7 +++++++ bfd/nlmcode.h | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'bfd') diff --git a/bfd/ChangeLog b/bfd/ChangeLog index b97b947..74b03de 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,10 @@ +Thu Aug 5 10:07:43 1993 Fred Fish (fnf@cygnus.com) + + * nlmcode.h (nlm_get_reloc_upper_bound): Test return value + of nlm_slurp_symbol_table as boolean, not pointer. + * nlmcode.h (nlm_canonicalize_reloc): Test return value + of nlm_slurp_reloc_fixups as boolean, not pointer. + Wed Aug 4 16:22:55 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com) * config/go32.mh: remove HDEFINES; since __MSDOS__ and __GO32__ diff --git a/bfd/nlmcode.h b/bfd/nlmcode.h index 43ea019..31c5dec 100644 --- a/bfd/nlmcode.h +++ b/bfd/nlmcode.h @@ -1245,7 +1245,7 @@ nlm_get_reloc_upper_bound (abfd, sec) syms = nlm_get_symbols (abfd); if (syms == NULL) { - if (nlm_slurp_symbol_table (abfd) == NULL) + if (nlm_slurp_symbol_table (abfd) == false) return 0; syms = nlm_get_symbols (abfd); } @@ -1280,7 +1280,7 @@ nlm_canonicalize_reloc (abfd, sec, relptr, symbols) rels = nlm_relocation_fixups (abfd); if (rels == NULL) { - if (nlm_slurp_reloc_fixups (abfd) == NULL) + if (nlm_slurp_reloc_fixups (abfd) == false) return 0; rels = nlm_relocation_fixups (abfd); if (rels == NULL) -- cgit v1.1