projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* config.in, configure: Regenerate.
[deliverable/binutils-gdb.git]
/
libiberty
/
xstrdup.c
diff --git
a/libiberty/xstrdup.c
b/libiberty/xstrdup.c
index 5ddd2e98a93beb881a94745ea64debd6f77ca78b..9ac2ea038f344e3b74b548b29cb49a4013262cc7 100644
(file)
--- a/
libiberty/xstrdup.c
+++ b/
libiberty/xstrdup.c
@@
-28,10
+28,9
@@
obtain memory.
#include "libiberty.h"
char *
-xstrdup (s)
- const char *s;
+xstrdup (const char *s)
{
register size_t len = strlen (s) + 1;
- register char *ret =
xmalloc (
len);
+ register char *ret =
XNEWVEC (char,
len);
return (char *) memcpy (ret, s, len);
}
This page took
0.023048 seconds
and
4
git commands to generate.