From: Richard Kenner Date: Tue, 14 Jun 1994 21:29:48 +0000 (-0400) Subject: (xstrdup): Renamed from strdup. X-Git-Tag: misc/cutover-egcs-0~6486 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1bc61c04f8da58fa076764b3987b20588aa4117d;p=thirdparty%2Fgcc.git (xstrdup): Renamed from strdup. (check_protection): Call xstrdup, not strdup. From-SVN: r7457 --- diff --git a/gcc/fix-header.c b/gcc/fix-header.c index 81b46cf32729..d8c2527f6792 100644 --- a/gcc/fix-header.c +++ b/gcc/fix-header.c @@ -447,7 +447,7 @@ write_rbrac () } char * -strdup (str) +xstrdup (str) char *str; { char *copy = (char *) xmalloc (strlen (str) + 1); @@ -577,7 +577,7 @@ check_protection (ifndef_line, endif_line) c = inf_scan_ident (&buf, inf_skip_spaces (c)); if (SSTRING_LENGTH (&buf) == 0 || c == EOF) return 0; - protect_name = strdup (buf.base); + protect_name = xstrdup (buf.base); INF_UNGET (c); c = inf_read_upto (&buf, '\n');