aboutsummaryrefslogtreecommitdiff
path: root/gdb/utils.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1991-05-03 06:02:03 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1991-05-03 06:02:03 +0000
commit8aa13b877740406cde5ce6b4e4b6950bd8741ef6 (patch)
treebba64cf04366f64fb2aec4a59d9a4ad0fc32f848 /gdb/utils.c
parent6f48f7f198e458b3518cf0e7310b8edf744f546a (diff)
downloadgdb-8aa13b877740406cde5ce6b4e4b6950bd8741ef6.zip
gdb-8aa13b877740406cde5ce6b4e4b6950bd8741ef6.tar.gz
gdb-8aa13b877740406cde5ce6b4e4b6950bd8741ef6.tar.bz2
Make it run on wingnut (88k, DGUX). Complete list of changes in the ChangeLog.
Diffstat (limited to 'gdb/utils.c')
-rw-r--r--gdb/utils.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/utils.c b/gdb/utils.c
index b014d3c..cce338d 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -448,9 +448,12 @@ savestring (ptr, size)
return p;
}
+/* The "const" is so it compiles under DGUX (which prototypes strsave
+ in <string.h>. FIXME: This should be named "xstrsave", shouldn't it?
+ Doesn't real strsave return NULL if out of memory? */
char *
strsave (ptr)
- char *ptr;
+ const char *ptr;
{
return savestring (ptr, strlen (ptr));
}