]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/nat/linux-osdata.c
Add casts to memory allocation related calls
[thirdparty/binutils-gdb.git] / gdb / nat / linux-osdata.c
index 03e4a86cfb14d07bd2b9960c599f40a17f7353d8..56a8fe6783725804f5f14f53932fedb04bb1737c 100644 (file)
@@ -78,7 +78,7 @@ linux_common_core_of_thread (ptid_t ptid)
   for (;;)
     {
       int n;
-      content = xrealloc (content, content_read + 1024);
+      content = (char *) xrealloc (content, content_read + 1024);
       n = fread (content + content_read, 1, 1024, f);
       content_read += n;
       if (n < 1024)