diff options
author | markm <markm@FreeBSD.org> | 2004-03-05 08:10:19 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2004-03-05 08:10:19 +0000 |
commit | 0b0ae8e16e50fd60ad86f4f14ec05cfc50e7eae5 (patch) | |
tree | 524ae0ef30bcdfacb05b3c2b01e1c48e80d93e3b /lib/libc/gen/dlfcn.c | |
parent | f5816d0166177c6f98d32562b93f6cf287f9b4f5 (diff) | |
download | FreeBSD-src-0b0ae8e16e50fd60ad86f4f14ec05cfc50e7eae5.zip FreeBSD-src-0b0ae8e16e50fd60ad86f4f14ec05cfc50e7eae5.tar.gz |
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
Diffstat (limited to 'lib/libc/gen/dlfcn.c')
-rw-r--r-- | lib/libc/gen/dlfcn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/gen/dlfcn.c b/lib/libc/gen/dlfcn.c index 25aa945..be58e28 100644 --- a/lib/libc/gen/dlfcn.c +++ b/lib/libc/gen/dlfcn.c @@ -109,7 +109,7 @@ int dlinfo(void * __restrict handle, int request, void * __restrict p) { _rtld_error(sorry); - return NULL; + return 0; } #pragma weak _rtld_thread_init |