aboutsummaryrefslogtreecommitdiff
path: root/gdb/common
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/common')
-rw-r--r--gdb/common/btrace-common.c2
-rw-r--r--gdb/common/buffer.c2
-rw-r--r--gdb/common/filestuff.c2
-rw-r--r--gdb/common/format.c2
-rw-r--r--gdb/common/gdb_vecs.c2
-rw-r--r--gdb/common/xml-utils.c2
6 files changed, 6 insertions, 6 deletions
diff --git a/gdb/common/btrace-common.c b/gdb/common/btrace-common.c
index 9d6c4a7..7d65ab2 100644
--- a/gdb/common/btrace-common.c
+++ b/gdb/common/btrace-common.c
@@ -161,7 +161,7 @@ btrace_data_append (struct btrace_data *dst,
size_t size;
size = src->variant.pt.size + dst->variant.pt.size;
- data = xmalloc (size);
+ data = (gdb_byte *) xmalloc (size);
memcpy (data, dst->variant.pt.data, dst->variant.pt.size);
memcpy (data + dst->variant.pt.size, src->variant.pt.data,
diff --git a/gdb/common/buffer.c b/gdb/common/buffer.c
index ca1636d..684fb6e 100644
--- a/gdb/common/buffer.c
+++ b/gdb/common/buffer.c
@@ -37,7 +37,7 @@ buffer_grow (struct buffer *buffer, const char *data, size_t size)
while (buffer->used_size + size > new_buffer_size)
new_buffer_size *= 2;
- new_buffer = xrealloc (buffer->buffer, new_buffer_size);
+ new_buffer = (char *) xrealloc (buffer->buffer, new_buffer_size);
memcpy (new_buffer + buffer->used_size, data, size);
buffer->buffer = new_buffer;
buffer->buffer_size = new_buffer_size;
diff --git a/gdb/common/filestuff.c b/gdb/common/filestuff.c
index c829a89..4348527 100644
--- a/gdb/common/filestuff.c
+++ b/gdb/common/filestuff.c
@@ -316,7 +316,7 @@ gdb_fopen_cloexec (const char *filename, const char *opentype)
{
char *copy;
- copy = alloca (strlen (opentype) + 2);
+ copy = (char *) alloca (strlen (opentype) + 2);
strcpy (copy, opentype);
/* This is a glibc extension but we try it unconditionally on
this path. */
diff --git a/gdb/common/format.c b/gdb/common/format.c
index 1602e53..52c6b81 100644
--- a/gdb/common/format.c
+++ b/gdb/common/format.c
@@ -99,7 +99,7 @@ parse_format_string (const char **arg)
/* Need extra space for the '\0's. Doubling the size is sufficient. */
- current_substring = xmalloc (strlen (string) * 2 + 1000);
+ current_substring = (char *) xmalloc (strlen (string) * 2 + 1000);
max_pieces = strlen (string) + 2;
diff --git a/gdb/common/gdb_vecs.c b/gdb/common/gdb_vecs.c
index 84424f8..63766db 100644
--- a/gdb/common/gdb_vecs.c
+++ b/gdb/common/gdb_vecs.c
@@ -60,7 +60,7 @@ delim_string_to_char_ptr_vec_append (VEC (char_ptr) **vecp,
next_field++;
}
- this_field = xmalloc (this_len + 1);
+ this_field = (char *) xmalloc (this_len + 1);
memcpy (this_field, str, this_len);
this_field[this_len] = '\0';
VEC_safe_push (char_ptr, *vecp, this_field);
diff --git a/gdb/common/xml-utils.c b/gdb/common/xml-utils.c
index e928afb..00e0356 100644
--- a/gdb/common/xml-utils.c
+++ b/gdb/common/xml-utils.c
@@ -49,7 +49,7 @@ xml_escape_text (const char *text)
}
/* Expand the result. */
- result = xmalloc (i + special + 1);
+ result = (char *) xmalloc (i + special + 1);
for (i = 0, special = 0; text[i] != '\0'; i++)
switch (text[i])
{