X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fgdbserver%2Fhostio.c;h=cd40e28fb661a109593e0453e1c7e3ef529de811;hb=f00a2de2a7556c59bce93f7ced44afa8e1bbf7c3;hp=8788f0739180f7c2642c6ea7487c24bc9fd49acf;hpb=45face3ba147a4c5f4f7e09cf10c95986b915002;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/gdbserver/hostio.c b/gdb/gdbserver/hostio.c index 8788f07391..cd40e28fb6 100644 --- a/gdb/gdbserver/hostio.c +++ b/gdb/gdbserver/hostio.c @@ -1,5 +1,5 @@ /* Host file transfer support for gdbserver. - Copyright (C) 2007-2015 Free Software Foundation, Inc. + Copyright (C) 2007-2017 Free Software Foundation, Inc. Contributed by CodeSourcery. @@ -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; @@ -331,7 +331,7 @@ handle_open (char *own_buf) } /* Record the new file descriptor. */ - new_fd = xmalloc (sizeof (struct fd_list)); + new_fd = XNEW (struct fd_list); new_fd->fd = fd; new_fd->next = open_fds; open_fds = new_fd; @@ -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