Make uiomove()'s count argument a size_t rather than an int.
This commit is contained in:
parent
f1e8d159b0
commit
c57c6b52cb
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: kern_subr.c,v 1.84 2002/08/25 20:01:13 thorpej Exp $ */
|
||||
/* $NetBSD: kern_subr.c,v 1.85 2002/08/25 22:28:42 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997, 1998, 1999, 2002 The NetBSD Foundation, Inc.
|
||||
|
@ -90,7 +90,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: kern_subr.c,v 1.84 2002/08/25 20:01:13 thorpej Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: kern_subr.c,v 1.85 2002/08/25 22:28:42 thorpej Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_md.h"
|
||||
|
@ -142,7 +142,7 @@ static void hook_proc_run __P((hook_list_t *, struct proc *));
|
|||
int
|
||||
uiomove(buf, n, uio)
|
||||
void *buf;
|
||||
int n;
|
||||
size_t n;
|
||||
struct uio *uio;
|
||||
{
|
||||
struct iovec *iov;
|
||||
|
@ -202,6 +202,7 @@ uiomove(buf, n, uio)
|
|||
uio->uio_resid -= cnt;
|
||||
uio->uio_offset += cnt;
|
||||
cp += cnt;
|
||||
KDASSERT(cnt <= n);
|
||||
n -= cnt;
|
||||
}
|
||||
return (error);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: systm.h,v 1.148 2002/08/25 20:01:12 thorpej Exp $ */
|
||||
/* $NetBSD: systm.h,v 1.149 2002/08/25 22:28:40 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1982, 1988, 1991, 1993
|
||||
|
@ -322,7 +322,7 @@ void doexithooks __P((struct proc *));
|
|||
int trace_enter __P((struct proc *, register_t, void *, register_t []));
|
||||
void trace_exit __P((struct proc *, register_t, void *, register_t [], int));
|
||||
|
||||
int uiomove __P((void *, int, struct uio *));
|
||||
int uiomove __P((void *, size_t, struct uio *));
|
||||
|
||||
#ifdef _KERNEL
|
||||
caddr_t allocsys __P((caddr_t, caddr_t (*)(caddr_t)));
|
||||
|
|
Loading…
Reference in New Issue