aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2009-09-28 12:15:51 +0000
committerNick Clifton <nickc@redhat.com>2009-09-28 12:15:51 +0000
commite3ad91e358e42d271eb98bac94f88eac0cb164eb (patch)
tree4f2f1d61def76817834f8a57353b559b2ee1d2ec /bfd
parentcaa83f8b08be81c0f5a93fd8beee392eeac826bc (diff)
downloadgdb-e3ad91e358e42d271eb98bac94f88eac0cb164eb.zip
gdb-e3ad91e358e42d271eb98bac94f88eac0cb164eb.tar.gz
gdb-e3ad91e358e42d271eb98bac94f88eac0cb164eb.tar.bz2
oops - omitted from previous delta
Diffstat (limited to 'bfd')
-rw-r--r--bfd/doc/ChangeLog6
-rw-r--r--bfd/doc/chew.c8
2 files changed, 10 insertions, 4 deletions
diff --git a/bfd/doc/ChangeLog b/bfd/doc/ChangeLog
index 03eca56..b85e3a1 100644
--- a/bfd/doc/ChangeLog
+++ b/bfd/doc/ChangeLog
@@ -1,3 +1,9 @@
+2009-09-25 Martin Thuresson <martint@google.com>
+
+ Update soruces to make alpha targets compile cleanly with
+ -Wc++-compat:
+ * chew.c: Add casts.
+
2009-08-29 Martin Thuresson <martin@mtme.org>
* chew.c (newentry, add_intrinsic): Rename variable new to
diff --git a/bfd/doc/chew.c b/bfd/doc/chew.c
index 172bc58..2276c8a 100644
--- a/bfd/doc/chew.c
+++ b/bfd/doc/chew.c
@@ -130,7 +130,7 @@ init_string_with_size (buffer, size)
{
buffer->write_idx = 0;
buffer->size = size;
- buffer->ptr = malloc (size);
+ buffer->ptr = (char *) malloc (size);
}
static void
@@ -201,7 +201,7 @@ catchar (buffer, ch)
if (buffer->write_idx == buffer->size)
{
buffer->size *= 2;
- buffer->ptr = realloc (buffer->ptr, buffer->size);
+ buffer->ptr = (char *) realloc (buffer->ptr, buffer->size);
}
buffer->ptr[buffer->write_idx++] = ch;
@@ -228,7 +228,7 @@ catbuf (buffer, buf, len)
{
while (buffer->write_idx + len >= buffer->size)
buffer->size *= 2;
- buffer->ptr = realloc (buffer->ptr, buffer->size);
+ buffer->ptr = (char *) realloc (buffer->ptr, buffer->size);
}
memcpy (buffer->ptr + buffer->write_idx, buf, len);
buffer->write_idx += len;
@@ -1177,7 +1177,7 @@ nextword (string, word)
}
}
- *word = malloc (length + 1);
+ *word = (char *) malloc (length + 1);
dst = *word;
src = word_start;