This is the mail archive of the libc-alpha@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [civhr@civ.hw.ac.uk] libc/1178: Multiple declaration of strnlen



I agree with Mark and should have looked directly closer at that report.

Here's a patch.

Andreas

1999-06-25  Andreas Jaeger  <aj@arthur.rhein-neckar.de>

	* string/bits/string2.h (strnlen): Remove strnlen prototype since
	it's duplicated here.
        Reported by Hannes Reinecke <H.Reinecke@hw.ac.uk>, PR libc/1178.

--- string/bits/string2.h.~2~	Sun Jun 20 08:58:02 1999
+++ string/bits/string2.h	Fri Jun 25 17:38:48 1999
@@ -943,7 +943,6 @@
 
 #if defined __USE_GNU && !defined _FORCE_INLINES
 # ifndef _HAVE_STRING_ARCH_strnlen
-__STRING_INLINE size_t strnlen (__const char *__string, size_t __maxlen);
 __STRING_INLINE size_t
 strnlen (__const char *__string, size_t __maxlen)
 {

-- 
 Andreas Jaeger   aj@arthur.rhein-neckar.de    jaeger@informatik.uni-kl.de
  for pgp-key finger ajaeger@aixd1.rhrk.uni-kl.de

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]