X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=libiberty%2Fstrdup.c;h=78c2093b61a3d05c758c9c14814ef38eb468633b;hb=64c79f42958048e796444491ed2be87aa4462590;hp=a3f17d3bcb1e6f63da5885718b16c18fc091eac6;hpb=37350d39ae875b3c57b36377886359fe4908b06e;p=pf3gnuchains%2Fgcc-fork.git diff --git a/libiberty/strdup.c b/libiberty/strdup.c index a3f17d3bcb1..78c2093b61a 100644 --- a/libiberty/strdup.c +++ b/libiberty/strdup.c @@ -10,19 +10,14 @@ Returns a pointer to a copy of @var{s} in memory obtained from */ #include -#ifdef ANSI_PROTOTYPES #include -#else -#define size_t unsigned long -#endif -extern size_t strlen PARAMS ((const char*)); -extern PTR malloc PARAMS ((size_t)); -extern PTR memcpy PARAMS ((PTR, const PTR, size_t)); +extern size_t strlen (const char*); +extern PTR malloc (size_t); +extern PTR memcpy (PTR, const PTR, size_t); char * -strdup(s) - const char *s; +strdup(const char *s) { size_t len = strlen (s) + 1; char *result = (char*) malloc (len);