* defs.h (msavestring, mstrsave): Remove prototypes.

* utils.c (msavestring, mstrsave): Remove functions.
* objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
* solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
of mstrsave.
* source.c (find_and_open_source): Use xstrdup instead of
mstrsave.
This commit is contained in:
Mark Kettenis 2004-09-30 19:57:54 +00:00
parent db8acf26ca
commit 982526a134
6 changed files with 14 additions and 23 deletions

View file

@ -889,7 +889,7 @@ find_and_open_source (struct objfile *objfile,
{
char *tmp_fullname;
tmp_fullname = *fullname;
*fullname = mstrsave (objfile->md, *fullname);
*fullname = xstrdup (tmp_fullname);
xfree (tmp_fullname);
}
return result;