freebsd-dev/lib/libc
Mark Murray 16fc3635f7 Make NULL a (void*)0 whereever possible, and fix the warnings(-Werror)
that this provokes. "Wherever possible" means "In the kernel OR NOT
C++" (implying C).

There are places where (void *) pointers are not valid, such as for
function pointers, but in the special case of (void *)0, agreement
settles on it being OK.

Most of the fixes were NULL where an integer zero was needed; many
of the fixes were NULL where ascii <nul> ('\0') was needed, and a
few were just "other".

Tested on: i386 sparc64
2004-03-05 08:10:19 +00:00
..
alpha Fix some aliasing problems. 2004-02-16 10:02:40 +00:00
amd64 Change the syscall stub branch orders so that the static branch prediction 2004-02-22 02:11:39 +00:00
compat-43 mdoc(7): Use the new feature of the .In macro. 2003-09-08 19:57:22 +00:00
db Simplify mpool_get() and mpool_write() by using pread() and pwrite() 2004-01-20 00:40:35 +00:00
gdtoa Updated manh shift constant type to 'ULL' for PPC to fix 2004-01-21 04:51:50 +00:00
gen Make NULL a (void*)0 whereever possible, and fix the warnings(-Werror) 2004-03-05 08:10:19 +00:00
gmon Use ANSI C function definition for _mcount' and remove static' 2004-01-06 18:49:54 +00:00
i386 Remove the code and an associated comment for gcc 1.x compatibility 2004-02-16 10:03:02 +00:00
ia64 Fix some aliasing problems. 2004-02-16 10:02:40 +00:00
include Make the resolver(3) and many associated interfaces much more reentrant. 2004-02-25 21:03:46 +00:00
locale Make consistent with the better written wcsrtombs function: 2004-02-27 15:03:22 +00:00
net Make NULL a (void*)0 whereever possible, and fix the warnings(-Werror) 2004-03-05 08:10:19 +00:00
nls Remove incomplete support for running FreeBSD userland on old NetBSD kernels 2003-10-29 10:45:01 +00:00
posix1e Adjust for brain outage that affected the previous commit. 2004-01-06 20:29:40 +00:00
powerpc makecontext lib call. 2004-03-02 06:22:24 +00:00
quad
regex mdoc(7): Use the new feature of the .In macro. 2003-09-08 19:57:22 +00:00
rpc Make NULL a (void*)0 whereever possible, and fix the warnings(-Werror) 2004-03-05 08:10:19 +00:00
sparc64 Fix some aliasing problems. 2004-02-16 10:02:40 +00:00
stdio If handed a file pointer we can't write to, set errno properly to EBADF 2004-03-02 19:43:51 +00:00
stdlib Make return code in noarg case GNU-compatible 2004-03-03 08:29:00 +00:00
stdtime Detect range errors when using the %s specifier. Previously, LONG_MAX 2003-11-17 04:19:15 +00:00
string Translate from GNU C to ISO C. 2004-01-14 07:47:10 +00:00
sys Document missing EFAULT errno value. 2004-03-03 14:51:11 +00:00
uuid
xdr When writing/reading longs use explicit 32bit temporary values. 2004-01-24 01:23:30 +00:00
yp
Makefile libc is now WARNS=2 clean with the exception of the gdtoa bits (which 2004-01-19 16:16:53 +00:00