This is the mail archive of the
libc-alpha@cygnus.com
mailing list for the glibc project.
Re: glibc-2.0.100: bits/string2.h nits
- To: "pacman" <pacman-libc@cqc.com>
- Subject: Re: glibc-2.0.100: bits/string2.h nits
- From: Ulrich Drepper <drepper@cygnus.com>
- Date: 12 Nov 1998 10:10:08 -0800
- Cc: vonbrand@sleipnir.valparaiso.cl (Horst von Brand), libc-alpha@cygnus.com
- References: <19981109055215.32731.qmail@defiant.cqc.com>
- Reply-To: drepper@cygnus.com (Ulrich Drepper)
"pacman" <pacman-libc@cqc.com> writes:
> The problem is that there are some functions in C, including strpbrk and
> strchr, which cannot be implemented in a clean way because of the way they
> abuse pointers. They can't be improved because their interfaces are defined
> by the relevant standards in a fundamentally broken way.
Correct.
> Change (char *)s to (char *)(long)s
I've added something similar: (long) is not the right type (well, it
normally is but not from the concept). I've used (size_t) instead.
I _looked_ through the file and fixed two places. But I might have
missed something. Let me know.
Thanks,
--
---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com `------------------------