X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=libiberty%2Fstrdup.c;h=78c2093b61a3d05c758c9c14814ef38eb468633b;hb=f24bdec48621f419fdc9dcd58f46891f062b7bc0;hp=a3f17d3bcb1e6f63da5885718b16c18fc091eac6;hpb=211333f61aa37b4212c09f877d2ffcf7ced3e2e8;p=deliverable%2Fbinutils-gdb.git diff --git a/libiberty/strdup.c b/libiberty/strdup.c index a3f17d3bcb..78c2093b61 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);