Use "NULL" instead of "(something-or-other *)0".

This commit is contained in:
simonb 2005-01-01 03:25:46 +00:00
parent 60e6b50deb
commit 4dab1db639
5 changed files with 16 additions and 17 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: compat_16_machdep.c,v 1.2 2003/11/26 08:36:49 he Exp $ */
/* $NetBSD: compat_16_machdep.c,v 1.3 2005/01/01 03:25:46 simonb Exp $ */
/*-
* Copyright (c) 1998, 2001 The NetBSD Foundation, Inc.
@ -52,7 +52,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: compat_16_machdep.c,v 1.2 2003/11/26 08:36:49 he Exp $");
__KERNEL_RCSID(0, "$NetBSD: compat_16_machdep.c,v 1.3 2005/01/01 03:25:46 simonb Exp $");
#include "opt_cputype.h"
#include "opt_compat_netbsd.h"
@ -254,9 +254,8 @@ compat_16_sys___sigreturn14(struct lwp *l, void *v, register_t *retval)
if (scp->sc_fpused) {
/* Disable the FPU to fault in FP registers. */
f->f_regs[_R_SR] &= ~MIPS_SR_COP_1_BIT;
if (l == fpcurlwp) {
fpcurlwp = (struct lwp *)0;
}
if (l == fpcurlwp)
fpcurlwp = NULL;
l->l_addr->u_pcb.pcb_fpregs = *(struct fpreg *)scp->sc_fpregs;
}
#else

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_interface.c,v 1.51 2003/11/26 08:36:49 he Exp $ */
/* $NetBSD: db_interface.c,v 1.52 2005/01/01 03:25:46 simonb Exp $ */
/*
* Mach Operating System
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.51 2003/11/26 08:36:49 he Exp $");
__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.52 2005/01/01 03:25:46 simonb Exp $");
#include "opt_cputype.h" /* which mips CPUs do we support? */
#include "opt_ddb.h"
@ -539,7 +539,7 @@ const struct db_command db_machine_command_table[] = {
{ "kvtop", db_kvtophys_cmd, 0, 0 },
{ "tlb", db_tlbdump_cmd, 0, 0 },
{ "cp0", db_cp0dump_cmd, 0, 0 },
{ (char *)0, }
{ NULL, }
};
#endif /* !KGDB */

View File

@ -1,4 +1,4 @@
/* $NetBSD: mips_machdep.c,v 1.176 2004/07/03 05:08:34 simonb Exp $ */
/* $NetBSD: mips_machdep.c,v 1.177 2005/01/01 03:25:46 simonb Exp $ */
/*
* Copyright 2002 Wasabi Systems, Inc.
@ -119,7 +119,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.176 2004/07/03 05:08:34 simonb Exp $");
__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.177 2005/01/01 03:25:46 simonb Exp $");
#include "opt_cputype.h"
@ -1109,7 +1109,7 @@ setregs(l, pack, stack)
f->f_regs[_R_A3] = (int)l->l_proc->p_psstr;
if ((l->l_md.md_flags & MDP_FPUSED) && l == fpcurlwp)
fpcurlwp = (struct lwp *)0;
fpcurlwp = NULL;
memset(&l->l_addr->u_pcb.pcb_fpregs, 0, sizeof(struct fpreg));
l->l_md.md_flags &= ~MDP_FPUSED;
l->l_md.md_ss_addr = 0;

View File

@ -1,4 +1,4 @@
/* $NetBSD: process_machdep.c,v 1.24 2003/11/26 08:36:49 he Exp $ */
/* $NetBSD: process_machdep.c,v 1.25 2005/01/01 03:25:46 simonb Exp $ */
/*
* Copyright (c) 1993 The Regents of the University of California.
@ -76,7 +76,7 @@
*/
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: process_machdep.c,v 1.24 2003/11/26 08:36:49 he Exp $");
__KERNEL_RCSID(0, "$NetBSD: process_machdep.c,v 1.25 2005/01/01 03:25:46 simonb Exp $");
/*
* This file may seem a bit stylized, but that so that it's easier to port.
@ -145,7 +145,7 @@ process_write_fpregs(struct lwp *l, struct fpreg *regs)
/* to load FPA contents next time when FP insn is executed */
if ((l->l_md.md_flags & MDP_FPUSED) && l == fpcurlwp)
fpcurlwp = (struct lwp *)0;
fpcurlwp = NULL;
memcpy(&l->l_addr->u_pcb.pcb_fpregs, regs, sizeof(struct fpreg));
return 0;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: vm_machdep.c,v 1.104 2004/09/17 14:11:21 skrll Exp $ */
/* $NetBSD: vm_machdep.c,v 1.105 2005/01/01 03:25:46 simonb Exp $ */
/*
* Copyright (c) 1992, 1993
@ -79,7 +79,7 @@
#include "opt_ddb.h"
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.104 2004/09/17 14:11:21 skrll Exp $");
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.105 2005/01/01 03:25:46 simonb Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -241,7 +241,7 @@ cpu_lwp_free(struct lwp *l, int proc)
{
if ((l->l_md.md_flags & MDP_FPUSED) && l == fpcurlwp)
fpcurlwp = (struct lwp *)0;
fpcurlwp = NULL;
}
/*