summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/share-env-with-gdbserver.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.base/share-env-with-gdbserver.c')
-rw-r--r--gdb/testsuite/gdb.base/share-env-with-gdbserver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/share-env-with-gdbserver.c b/gdb/testsuite/gdb.base/share-env-with-gdbserver.c
index 17e95756a0a..a153f774fca 100644
--- a/gdb/testsuite/gdb.base/share-env-with-gdbserver.c
+++ b/gdb/testsuite/gdb.base/share-env-with-gdbserver.c
@@ -30,7 +30,7 @@ int
main (int argc, char *argv[])
{
/* Call malloc to ensure it is linked in. */
- char *tmp = malloc (1);
+ char *tmp = (char *) malloc (1);
/* Similarly call my_getenv instead of getenv directly to make sure
the former isn't optimized out. my_getenv is called by GDB. */
const char *myvar = my_getenv ("GDB_TEST_VAR");