aboutsummaryrefslogtreecommitdiff
path: root/gdb/objfiles.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-04-13 15:31:29 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-04-13 15:31:29 +0000
commitccd87bf2b473f1e30c71f8d354171c5c7661c6df (patch)
treec97ced0c2f7dd38c696f2ff9fc65e4b2e78f460f /gdb/objfiles.c
parentf36492275cd36b470afcdc04e0a108830f03d650 (diff)
downloadfsf-binutils-gdb-ccd87bf2b473f1e30c71f8d354171c5c7661c6df.zip
fsf-binutils-gdb-ccd87bf2b473f1e30c71f8d354171c5c7661c6df.tar.gz
fsf-binutils-gdb-ccd87bf2b473f1e30c71f8d354171c5c7661c6df.tar.bz2
* objfiles.c (build_objfile_section_table): Cast return value
from obstack_finish.
Diffstat (limited to 'gdb/objfiles.c')
-rw-r--r--gdb/objfiles.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/objfiles.c b/gdb/objfiles.c
index 541941a..94b5f57 100644
--- a/gdb/objfiles.c
+++ b/gdb/objfiles.c
@@ -100,7 +100,8 @@ build_objfile_section_table (objfile)
objfile->sections_end = 0;
bfd_map_over_sections (objfile->obfd, add_to_objfile_sections, (char *)objfile);
- objfile->sections = obstack_finish (&objfile->psymbol_obstack);
+ objfile->sections = (struct obj_section *)
+ obstack_finish (&objfile->psymbol_obstack);
objfile->sections_end = objfile->sections + (int) objfile->sections_end;
return(0);
}