From owner-cvs-src@FreeBSD.ORG Fri Mar 5 00:10:20 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3E16D16A4CE; Fri, 5 Mar 2004 00:10:20 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 38B8D43D1D; Fri, 5 Mar 2004 00:10:20 -0800 (PST) (envelope-from markm@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i258AKGe098279; Fri, 5 Mar 2004 00:10:20 -0800 (PST) (envelope-from markm@repoman.freebsd.org) Received: (from markm@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i258AJQt098278; Fri, 5 Mar 2004 00:10:19 -0800 (PST) (envelope-from markm) Message-Id: <200403050810.i258AJQt098278@repoman.freebsd.org> From: Mark Murray Date: Fri, 5 Mar 2004 00:10:19 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: 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 ... X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Mar 2004 08:10:20 -0000 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 ('\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