cvs commit: src/bin/df df.c src/bin/pax options.c
src/lib/libbluetooth bluetooth.c src/lib/libbsnmp Makefile.inc
src/lib/libc/gen dlfcn.c getpwent.c src/lib/libc/net
gethostbydns.c src/lib/libc/rpc getnetconfig.c ...
Mark Murray
markm at FreeBSD.org
Fri Mar 5 00:10:20 PST 2004
markm 2004/03/05 00:10:19 PST
FreeBSD src repository
Modified files:
bin/df df.c
bin/pax options.c
lib/libbluetooth bluetooth.c
lib/libbsnmp Makefile.inc
lib/libc/gen dlfcn.c getpwent.c
lib/libc/net gethostbydns.c
lib/libc/rpc getnetconfig.c
lib/libpam/modules/pam_login_access login_access.c
lib/libthr/arch/i386/i386 _setcurthread.c
libexec/rtld-elf rtld.c
sbin/atm/atmconfig diag.c
sbin/kldconfig kldconfig.c
sbin/raidctl raidctl.c rf_configure.c
sbin/swapon swapon.c
sys/sys _null.h
usr.sbin/bluetooth/hccontrol send_recv.c
usr.sbin/bsnmpd/bsnmpd Makefile
usr.sbin/burncd burncd.c
usr.sbin/mountd mountd.c
usr.sbin/pstat pstat.c
Log:
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
Revision Changes Path
1.55 +1 -1 src/bin/df/df.c
1.30 +1 -1 src/bin/pax/options.c
1.2 +1 -1 src/lib/libbluetooth/bluetooth.c
1.3 +1 -0 src/lib/libbsnmp/Makefile.inc
1.12 +1 -1 src/lib/libc/gen/dlfcn.c
1.86 +1 -1 src/lib/libc/gen/getpwent.c
1.45 +2 -2 src/lib/libc/net/gethostbydns.c
1.10 +4 -4 src/lib/libc/rpc/getnetconfig.c
1.12 +1 -1 src/lib/libpam/modules/pam_login_access/login_access.c
1.13 +1 -1 src/lib/libthr/arch/i386/i386/_setcurthread.c
1.93 +4 -4 src/libexec/rtld-elf/rtld.c
1.4 +1 -1 src/sbin/atm/atmconfig/diag.c
1.6 +2 -2 src/sbin/kldconfig/kldconfig.c
1.2 +1 -1 src/sbin/raidctl/raidctl.c
1.2 +1 -1 src/sbin/raidctl/rf_configure.c
1.19 +1 -1 src/sbin/swapon/swapon.c
1.6 +5 -5 src/sys/sys/_null.h
1.4 +1 -1 src/usr.sbin/bluetooth/hccontrol/send_recv.c
1.6 +1 -0 src/usr.sbin/bsnmpd/bsnmpd/Makefile
1.39 +1 -1 src/usr.sbin/burncd/burncd.c
1.76 +1 -1 src/usr.sbin/mountd/mountd.c
1.88 +1 -1 src/usr.sbin/pstat/pstat.c
More information about the cvs-src
mailing list