Don't use NULL in integer-type assignments/comparisons.

This commit is contained in:
kleink 2003-10-21 12:08:11 +00:00
parent c61c0de641
commit 004922cd70
4 changed files with 11 additions and 11 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.25 2003/08/10 02:30:52 chs Exp $ */
/* $NetBSD: vmparam.h,v 1.26 2003/10/21 12:08:11 kleink Exp $ */
/*
* Copyright (c) 1992, 1993
@ -172,7 +172,7 @@ struct vm_page_md {
do { \
(pg)->mdpage.mdpg_pvh.pv_next = NULL; \
(pg)->mdpage.mdpg_pvh.pv_pmap = NULL; \
(pg)->mdpage.mdpg_pvh.pv_va = NULL; \
(pg)->mdpage.mdpg_pvh.pv_va = 0; \
} while (/*CONSTCOND*/0)
#endif /* _KERNEL */

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.146 2003/10/21 08:43:32 petrov Exp $ */
/* $NetBSD: pmap.c,v 1.147 2003/10/21 12:08:11 kleink Exp $ */
/*
*
* Copyright (C) 1996-1999 Eduardo Horvath.
@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.146 2003/10/21 08:43:32 petrov Exp $");
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.147 2003/10/21 12:08:11 kleink Exp $");
#undef NO_VCACHE /* Don't forget the locked TLB in dostart */
#define HWREF
@ -3470,7 +3470,7 @@ pmap_testout()
/* Allocate a page */
va = (vaddr_t)(vmmap - PAGE_SIZE);
KASSERT(va != NULL);
KASSERT(va != 0);
loc = (int*)va;
pmap_get_page(&pa);

View File

@ -1,4 +1,4 @@
/* $NetBSD: sunos32_machdep.c,v 1.12 2003/09/26 18:10:01 christos Exp $ */
/* $NetBSD: sunos32_machdep.c,v 1.13 2003/10/21 12:08:11 kleink Exp $ */
/* from: NetBSD: sunos_machdep.c,v 1.14 2001/01/29 01:37:56 mrg Exp */
/*
@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: sunos32_machdep.c,v 1.12 2003/09/26 18:10:01 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: sunos32_machdep.c,v 1.13 2003/10/21 12:08:11 kleink Exp $");
#ifdef _KERNEL_OPT
#include "opt_ddb.h"
@ -155,7 +155,7 @@ sunos32_setregs(l, pack, stack)
stack -= sizeof(struct rwindow32);
tf->tf_out[6] = stack;
tf->tf_out[7] = NULL;
tf->tf_out[7] = 0;
}
void

View File

@ -1,4 +1,4 @@
/* $NetBSD: sunos32_misc.c,v 1.23 2003/08/07 16:30:47 agc Exp $ */
/* $NetBSD: sunos32_misc.c,v 1.24 2003/10/21 12:08:11 kleink Exp $ */
/* from :NetBSD: sunos_misc.c,v 1.107 2000/12/01 19:25:10 jdolecek Exp */
/*
@ -79,7 +79,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: sunos32_misc.c,v 1.23 2003/08/07 16:30:47 agc Exp $");
__KERNEL_RCSID(0, "$NetBSD: sunos32_misc.c,v 1.24 2003/10/21 12:08:11 kleink Exp $");
#define COMPAT_SUNOS 1
@ -616,7 +616,7 @@ async_daemon(l, v, retval)
struct netbsd32_nfssvc_args ouap;
SCARG(&ouap, flag) = NFSSVC_BIOD;
SCARG(&ouap, argp) = NULL;
SCARG(&ouap, argp) = 0;
return (netbsd32_nfssvc(l, &ouap, retval));
}