aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdb_obstack.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/gdb_obstack.c')
-rw-r--r--gdb/gdb_obstack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/gdb_obstack.c b/gdb/gdb_obstack.c
index d8d03df..5545242 100644
--- a/gdb/gdb_obstack.c
+++ b/gdb/gdb_obstack.c
@@ -43,7 +43,7 @@ obconcat (struct obstack *obstackp, ...)
va_end (ap);
obstack_1grow (obstackp, 0);
- return obstack_finish (obstackp);
+ return (char *) obstack_finish (obstackp);
}
/* See gdb_obstack.h. */
@@ -51,7 +51,7 @@ obconcat (struct obstack *obstackp, ...)
char *
obstack_strdup (struct obstack *obstackp, const char *string)
{
- char *obstring = obstack_alloc (obstackp, strlen (string) + 1);
+ char *obstring = (char *) obstack_alloc (obstackp, strlen (string) + 1);
strcpy (obstring, string);
return obstring;
}