aboutsummaryrefslogtreecommitdiff
path: root/bfd/i386msdos.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/i386msdos.c')
-rw-r--r--bfd/i386msdos.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/bfd/i386msdos.c b/bfd/i386msdos.c
index 62d2696..3a272e9 100644
--- a/bfd/i386msdos.c
+++ b/bfd/i386msdos.c
@@ -52,15 +52,15 @@ msdos_write_object_contents (bfd *abfd)
for (sec = abfd->sections; sec != (asection *) NULL; sec = sec->next)
{
if (sec->size == 0)
- continue;
+ continue;
if (bfd_get_section_flags (abfd, sec) & SEC_ALLOC)
- {
+ {
bfd_vma sec_vma = bfd_get_section_vma (abfd, sec) + sec->size;
if (sec_vma > high_vma)
high_vma = sec_vma;
}
if (bfd_get_section_flags (abfd, sec) & SEC_LOAD)
- {
+ {
file_ptr sec_end = (sizeof (hdr)
+ bfd_get_section_vma (abfd, sec)
+ sec->size);
@@ -118,8 +118,8 @@ msdos_set_section_contents (bfd *abfd,
if (bfd_get_section_flags (abfd, section) & SEC_LOAD)
{
if (bfd_seek (abfd, section->filepos + offset, SEEK_SET) != 0
- || bfd_bwrite (location, count, abfd) != count)
- return FALSE;
+ || bfd_bwrite (location, count, abfd) != count)
+ return FALSE;
}
return TRUE;