]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/ctf.c
Add casts to memory allocation related calls
[thirdparty/binutils-gdb.git] / gdb / ctf.c
index 6e7c6163ba3b3324c88c68c8b0a057167b7dbf90..6c1aedea75718568683006f76f38ec5cd82fe04b 100644 (file)
--- a/gdb/ctf.c
+++ b/gdb/ctf.c
@@ -1338,7 +1338,7 @@ ctf_xfer_partial (struct target_ops *ops, enum target_object object,
              gdb_byte *contents;
              int k;
 
-             contents = xmalloc (mlen);
+             contents = (gdb_byte *) xmalloc (mlen);
 
              for (k = 0; k < mlen; k++)
                {