[patch] Re: Implementation errors in strtol()

Joerg Wunsch freebsd-current at uriah.heep.sax.de
Fri Jan 21 07:10:05 PST 2005


As Andrey Chernov wrote:

> Here is untested patch to fix the problem:

Apart of the stylistic problems mentioned by Bruce:

uriah # make
cc -O -pipe -I/usr/src/lib/libc/include -I/usr/src/lib/libc/../../include -I/usr/src/lib/libc/i386 -D__DBINTERFACE_PRIVATE -I/usr/src/lib/libc/../../contrib/gdtoa -DINET6 -I/usr/obj/usr/src/lib/libc -DPOSIX_MISTAKE -I/usr/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/usr/src/lib/libc/rpc -DYP -DHESIOD -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c /usr/src/lib/libc/stdlib/strtol.c
/usr/src/lib/libc/stdlib/strtol.c: In function `strtol':
/usr/src/lib/libc/stdlib/strtol.c:81: warning: suggest parentheses around && within ||
/usr/src/lib/libc/stdlib/strtol.c:82: warning: suggest parentheses around && within ||
*** Error code 1

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)


More information about the freebsd-current mailing list