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/nlmcode.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bfd/nlmcode.h') 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