aboutsummaryrefslogtreecommitdiff
path: root/gdb/go-lang.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/go-lang.c')
-rw-r--r--gdb/go-lang.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/go-lang.c b/gdb/go-lang.c
index b72c857..509704c 100644
--- a/gdb/go-lang.c
+++ b/gdb/go-lang.c
@@ -379,7 +379,7 @@ go_demangle (const char *mangled_name, int options)
}
obstack_grow_str0 (&tempbuf, "");
- result = xstrdup (obstack_finish (&tempbuf));
+ result = xstrdup ((const char *) obstack_finish (&tempbuf));
obstack_free (&tempbuf, NULL);
xfree (name_buf);
return result;