mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-13 19:30:53 +08:00
Fix minor pointer type problems that "cc" complains about.
This commit is contained in:
@ -48,7 +48,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|||||||
|
|
||||||
|
|
||||||
static bfd_reloc_status_enum_type
|
static bfd_reloc_status_enum_type
|
||||||
DEFUN(howto_hvrt16,(abfd, reloc_entry, symbol_in, data, input_section),
|
DEFUN(howto_hvrt16,(abfd, reloc_entry, symbol_in, data, ignore_input_section),
|
||||||
bfd *abfd AND
|
bfd *abfd AND
|
||||||
arelent *reloc_entry AND
|
arelent *reloc_entry AND
|
||||||
asymbol *symbol_in AND
|
asymbol *symbol_in AND
|
||||||
|
@ -296,7 +296,7 @@ DEFUN(PTR bfd_alloc, (abfd, size),
|
|||||||
bfd *abfd AND
|
bfd *abfd AND
|
||||||
size_t size)
|
size_t size)
|
||||||
{
|
{
|
||||||
PTR *res = obstack_alloc(&(abfd->memory),size);
|
PTR res = obstack_alloc(&(abfd->memory),size);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -42,7 +42,10 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|||||||
|
|
||||||
/* $Id$
|
/* $Id$
|
||||||
* $Log$
|
* $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 ***
|
* *** empty log message ***
|
||||||
*
|
*
|
||||||
* Revision 1.4 1991/04/23 16:01:02 steve
|
* Revision 1.4 1991/04/23 16:01:02 steve
|
||||||
@ -283,8 +286,8 @@ void *location;
|
|||||||
file_ptr offset;
|
file_ptr offset;
|
||||||
unsigned int count;
|
unsigned int count;
|
||||||
{
|
{
|
||||||
if (section->used_by_bfd == (bfd_byte *)NULL) {
|
if (section->used_by_bfd == (PTR)NULL) {
|
||||||
section->used_by_bfd = (bfd_byte *)malloc(section->size);
|
section->used_by_bfd = (PTR)malloc(section->size);
|
||||||
pass_over(abfd, fillup, section);
|
pass_over(abfd, fillup, section);
|
||||||
}
|
}
|
||||||
(void) memcpy(location, (bfd_byte *)(section->used_by_bfd) + offset, count);
|
(void) memcpy(location, (bfd_byte *)(section->used_by_bfd) + offset, count);
|
||||||
|
Reference in New Issue
Block a user