X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=bfd%2Fnlm32-i386.c;h=9318304728dc0083d4a3c789c0e9b9179f19bd07;hb=b3baf5d0a8293b5f823c0d7848494507edb373fb;hp=f16c74d985eb766bcf83b79c226ffe103ebc3572;hpb=30727aa6d12fb866494020c0b62ab265a2bdcdfe;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/nlm32-i386.c b/bfd/nlm32-i386.c index f16c74d985..9318304728 100644 --- a/bfd/nlm32-i386.c +++ b/bfd/nlm32-i386.c @@ -1,5 +1,5 @@ /* Support for 32-bit i386 NLM (NetWare Loadable Module) - Copyright (C) 1993 Free Software Foundation, Inc. + Copyright 1993, 1994, 2000 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. @@ -226,7 +226,7 @@ nlm_i386_write_import (abfd, sec, rel) } } } - + bfd_put_32 (abfd, val, temp); if (bfd_write (temp, sizeof (temp), 1, abfd) != sizeof (temp)) return false; @@ -376,7 +376,7 @@ nlm_i386_read_import (abfd, sym) while (sym -> rcnt < rcount) { asection *section; - + if (nlm_i386_read_reloc (abfd, sym, §ion, &nlm_relocs -> reloc) == false) @@ -402,12 +402,12 @@ nlm_i386_write_external (abfd, count, sym, relocs) unsigned char temp[NLM_TARGET_LONG_SIZE]; len = strlen (sym->name); - if ((bfd_write (&len, sizeof (bfd_byte), 1, abfd) != sizeof(bfd_byte)) + if ((bfd_write (&len, sizeof (bfd_byte), 1, abfd) != sizeof (bfd_byte)) || bfd_write (sym->name, len, 1, abfd) != len) return false; bfd_put_32 (abfd, count, temp); - if (bfd_write (temp, sizeof(temp), 1, abfd) != sizeof (temp)) + if (bfd_write (temp, sizeof (temp), 1, abfd) != sizeof (temp)) return false; for (i = 0; i < count; i++)