summaryrefslogtreecommitdiffstats
path: root/contrib/binutils/ld/ldmisc.c
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2001-06-26 16:57:43 +0000
committerobrien <obrien@FreeBSD.org>2001-06-26 16:57:43 +0000
commitbc13a0c5958e501561da1e6b4a3ca1fadda52059 (patch)
tree8f1caef823fb6443d77eaf8250cbaa506e3bdf46 /contrib/binutils/ld/ldmisc.c
parent328e45595b12375b6d16a846069507d25086abdb (diff)
downloadFreeBSD-src-bc13a0c5958e501561da1e6b4a3ca1fadda52059.zip
FreeBSD-src-bc13a0c5958e501561da1e6b4a3ca1fadda52059.tar.gz
Import of GNU Binutils version 2.11.2.
Diffstat (limited to 'contrib/binutils/ld/ldmisc.c')
-rw-r--r--contrib/binutils/ld/ldmisc.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/contrib/binutils/ld/ldmisc.c b/contrib/binutils/ld/ldmisc.c
index 7068cc3..12dbdf3 100644
--- a/contrib/binutils/ld/ldmisc.c
+++ b/contrib/binutils/ld/ldmisc.c
@@ -1,5 +1,5 @@
/* ldmisc.c
- Copyright (C) 1991, 92, 93, 94, 95, 96, 97, 98, 99, 2000
+ Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000
Free Software Foundation, Inc.
Written by Steve Chamberlain of Cygnus Support.
@@ -335,10 +335,10 @@ vfinfo (fp, fmt, arg)
last_bfd = abfd;
if (last_file != NULL)
free (last_file);
- last_file = buystring (filename);
+ last_file = xstrdup (filename);
if (last_function != NULL)
free (last_function);
- last_function = buystring (functionname);
+ last_function = xstrdup (functionname);
}
discard_last = false;
if (linenumber != 0)
@@ -464,16 +464,6 @@ info_assert (file, line)
einfo (_("%F%P: internal error %s %d\n"), file, line);
}
-char *
-buystring (x)
- CONST char *CONST x;
-{
- size_t l = strlen (x) + 1;
- char *r = xmalloc (l);
- memcpy (r, x, l);
- return r;
-}
-
/* ('m' for map) Format info message and print on map. */
void
OpenPOWER on IntegriCloud