diff options
author | Mark Murray <markm@FreeBSD.org> | 2004-03-05 08:10:19 +0000 |
---|---|---|
committer | Mark Murray <markm@FreeBSD.org> | 2004-03-05 08:10:19 +0000 |
commit | 16fc3635f7aec3852abfc6dd77f89baef91f22fa (patch) | |
tree | 524ae0ef30bcdfacb05b3c2b01e1c48e80d93e3b /usr.sbin/mountd | |
parent | 5af2e7de06321c8f6aaa876fa79bf08870e8911c (diff) |
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
Notes
Notes:
svn path=/head/; revision=126643
Diffstat (limited to 'usr.sbin/mountd')
-rw-r--r-- | usr.sbin/mountd/mountd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/mountd/mountd.c b/usr.sbin/mountd/mountd.c index 6091dab5bc18..a52ee0db4347 100644 --- a/usr.sbin/mountd/mountd.c +++ b/usr.sbin/mountd/mountd.c @@ -283,7 +283,7 @@ main(argc, argv) in_port_t svcport = 0; udp6conf = tcp6conf = NULL; - udp6sock = tcp6sock = NULL; + udp6sock = tcp6sock = 0; /* Check that another mountd isn't already running. */ if ((mountdlockfd = (open(MOUNTDLOCK, O_RDONLY|O_CREAT, 0444))) == -1) |