aboutsummaryrefslogtreecommitdiff
path: root/bfd/tekhex.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/tekhex.c')
-rw-r--r--bfd/tekhex.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/bfd/tekhex.c b/bfd/tekhex.c
index 052795d..0be3ab9 100644
--- a/bfd/tekhex.c
+++ b/bfd/tekhex.c
@@ -324,7 +324,8 @@ find_chunk (bfd *abfd, bfd_vma vma)
if (!d)
{
/* No chunk for this address, so make one up. */
- d = bfd_zalloc (abfd, (bfd_size_type) sizeof (struct data_struct));
+ d = (struct data_struct *)
+ bfd_zalloc (abfd, (bfd_size_type) sizeof (struct data_struct));
if (!d)
return NULL;
@@ -383,7 +384,7 @@ first_phase (bfd *abfd, int type, char *src)
section = bfd_get_section_by_name (abfd, sym);
if (section == NULL)
{
- char *n = bfd_alloc (abfd, (bfd_size_type) len + 1);
+ char *n = (char *) bfd_alloc (abfd, (bfd_size_type) len + 1);
if (!n)
return FALSE;
@@ -534,7 +535,7 @@ tekhex_mkobject (bfd *abfd)
{
tdata_type *tdata;
- tdata = bfd_alloc (abfd, (bfd_size_type) sizeof (tdata_type));
+ tdata = (tdata_type *) bfd_alloc (abfd, (bfd_size_type) sizeof (tdata_type));
if (!tdata)
return FALSE;
abfd->tdata.tekhex_data = tdata;