aboutsummaryrefslogtreecommitdiff
path: root/bfd/coff-code.h
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-05-04 22:52:03 +0000
committerJohn Gilmore <gnu@cygnus>1991-05-04 22:52:03 +0000
commitb1847ba9e7da744bb3695f9611dad4119cc7991e (patch)
tree7ca7f7e925b75f84599248690f7e6f30cacd702a /bfd/coff-code.h
parentf929c7d43b5edde3aabc92506edce40bf38b95a0 (diff)
downloadgdb-b1847ba9e7da744bb3695f9611dad4119cc7991e.zip
gdb-b1847ba9e7da744bb3695f9611dad4119cc7991e.tar.gz
gdb-b1847ba9e7da744bb3695f9611dad4119cc7991e.tar.bz2
Saber C cleanup. Fix horrid bug in opncls.c in which an obstack is
initialized on the stack and then copied into its own allocated space. (Wow, Steve, you're twisted...)
Diffstat (limited to 'bfd/coff-code.h')
-rwxr-xr-xbfd/coff-code.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/bfd/coff-code.h b/bfd/coff-code.h
index 8472670..c9d7da7 100755
--- a/bfd/coff-code.h
+++ b/bfd/coff-code.h
@@ -1605,7 +1605,7 @@ get_normalized_symtab(abfd)
return (NULL);
} /* on error */
if (bfd_seek(abfd, obj_sym_filepos(abfd), SEEK_SET) == -1
- || bfd_read(s, sizeof(SYMENT), 1, abfd) != sizeof(SYMENT)) {
+ || bfd_read((char *)s, sizeof(SYMENT), 1, abfd) != sizeof(SYMENT)) {
bfd_error = system_call_error;
return (NULL);
} /* on error */
@@ -1668,7 +1668,8 @@ get_normalized_symtab(abfd)
if (bfd_seek(abfd, obj_sym_filepos(abfd), SEEK_SET) == -1
- || bfd_read(retval + obj_symbol_slew(abfd), size, 1, abfd) != size) {
+ || bfd_read((char *)(retval + obj_symbol_slew(abfd)), size, 1, abfd)
+ != size) {
bfd_error = system_call_error;
return (NULL);
} /* on read error */