This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
Re: warning about __strndup
>>>>> Ulrich Drepper writes:
Uli> Andreas Jaeger <aj@suse.de> writes:
>> I would prefer to move __strndup and also __strdup into
>> strings/bits/string2.h. Uli, what do you think?
Uli> Yep. I have checked in a patch which I think will cure the problem.
Uli> Thanks,
Please also add this patch:
2000-05-04 Andreas Jaeger <aj@suse.de>
* string/string.h: Remove __strdup prototype, it's not needed in
this file anymore.
============================================================
Index: string/string.h
--- string/string.h 2000/02/24 08:17:11 1.73
+++ string/string.h 2000/05/04 11:15:17
@@ -112,7 +112,6 @@
#if defined __USE_SVID || defined __USE_BSD || defined __USE_XOPEN_EXTENDED
/* Duplicate S, returning an identical malloc'd string. */
-extern char *__strdup (__const char *__s) __THROW __attribute_malloc__;
extern char *strdup (__const char *__s) __THROW __attribute_malloc__;
#endif
--
Andreas Jaeger
SuSE Labs aj@suse.de