summaryrefslogtreecommitdiff
path: root/gdb/inftarg.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/inftarg.c')
-rw-r--r--gdb/inftarg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/inftarg.c b/gdb/inftarg.c
index e0b6a31e278..df3c5fe5edc 100644
--- a/gdb/inftarg.c
+++ b/gdb/inftarg.c
@@ -540,7 +540,7 @@ child_xfer_partial (struct target_ops *ops, enum target_object object,
return child_xfer_memory (offset, readbuf, len, 0/*write*/,
NULL, ops);
if (writebuf)
- return child_xfer_memory (offset, readbuf, len, 1/*write*/,
+ return child_xfer_memory (offset, (void *) writebuf, len, 1/*write*/,
NULL, ops);
return -1;