diff options
Diffstat (limited to 'gdb/gdbserver/hostio.c')
-rw-r--r-- | gdb/gdbserver/hostio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/gdbserver/hostio.c b/gdb/gdbserver/hostio.c index a631d9e..48fa6f3 100644 --- a/gdb/gdbserver/hostio.c +++ b/gdb/gdbserver/hostio.c @@ -126,7 +126,7 @@ require_data (char *p, int p_len, char **data, int *data_len) { int input_index, output_index, escaped; - *data = xmalloc (p_len); + *data = (char *) xmalloc (p_len); output_index = 0; escaped = 0; @@ -371,7 +371,7 @@ handle_pread (char *own_buf, int *new_packet_len) if (len > max_reply_size) len = max_reply_size; - data = xmalloc (len); + data = (char *) xmalloc (len); #ifdef HAVE_PREAD ret = pread (fd, data, len, offset); #else |