Don't cast the null residual pointer passed to vn_rdwr().

This commit is contained in:
thorpej 1998-07-28 18:11:39 +00:00
parent 939279f988
commit 80e25bcca0
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: exec_subr.c,v 1.13 1998/02/23 18:53:22 chuck Exp $ */
/* $NetBSD: exec_subr.c,v 1.14 1998/07/28 18:11:39 thorpej Exp $ */
/*
* Copyright (c) 1993, 1994, 1996 Christopher G. Demetriou
@ -238,7 +238,7 @@ vmcmd_map_readvn(p, cmd)
error = vn_rdwr(UIO_READ, cmd->ev_vp, (caddr_t)cmd->ev_addr,
cmd->ev_len, cmd->ev_offset, UIO_USERSPACE, IO_UNIT,
p->p_ucred, (int *)0, p);
p->p_ucred, NULL, p);
if (error)
return error;

View File

@ -1,4 +1,4 @@
/* $NetBSD: kern_acct.c,v 1.44 1998/03/01 02:22:27 fvdl Exp $ */
/* $NetBSD: kern_acct.c,v 1.45 1998/07/28 18:13:04 thorpej Exp $ */
/*-
* Copyright (c) 1994 Christopher G. Demetriou
@ -219,7 +219,7 @@ acct_process(p)
VOP_LEASE(vp, p, p->p_ucred, LEASE_WRITE);
return (vn_rdwr(UIO_WRITE, vp, (caddr_t)&acct, sizeof (acct),
(off_t)0, UIO_SYSSPACE, IO_APPEND|IO_UNIT, p->p_ucred,
(int *)0, p));
NULL, p));
}
/*