aboutsummaryrefslogtreecommitdiff
path: root/bfd/srec.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-04-25 04:06:21 +0000
committerJohn Gilmore <gnu@cygnus>1991-04-25 04:06:21 +0000
commita6ac0c5998db0fb3b89c11800507b7307dba692b (patch)
tree7d1cc98073704e155e81832fde0f3bb861af3dc0 /bfd/srec.c
parent65c552e308c59f2fb8523446a627e1791134aaef (diff)
downloadgdb-a6ac0c5998db0fb3b89c11800507b7307dba692b.zip
gdb-a6ac0c5998db0fb3b89c11800507b7307dba692b.tar.gz
gdb-a6ac0c5998db0fb3b89c11800507b7307dba692b.tar.bz2
Fix minor pointer type problems that "cc" complains about.
Diffstat (limited to 'bfd/srec.c')
-rw-r--r--bfd/srec.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/bfd/srec.c b/bfd/srec.c
index 4fd233e..fe4fa7c 100644
--- a/bfd/srec.c
+++ b/bfd/srec.c
@@ -42,7 +42,10 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
/* $Id$
* $Log$
- * Revision 1.5 1991/04/23 22:44:14 steve
+ * Revision 1.6 1991/04/25 04:06:21 gnu
+ * Fix minor pointer type problems that "cc" complains about.
+ *
+ * Revision 1.5 1991/04/23 22:44:14 steve
* *** empty log message ***
*
* Revision 1.4 1991/04/23 16:01:02 steve
@@ -283,8 +286,8 @@ void *location;
file_ptr offset;
unsigned int count;
{
- if (section->used_by_bfd == (bfd_byte *)NULL) {
- section->used_by_bfd = (bfd_byte *)malloc(section->size);
+ if (section->used_by_bfd == (PTR)NULL) {
+ section->used_by_bfd = (PTR)malloc(section->size);
pass_over(abfd, fillup, section);
}
(void) memcpy(location, (bfd_byte *)(section->used_by_bfd) + offset, count);