diff options
author | Stefan Kempf <stefan@cvs.openbsd.org> | 2008-04-06 19:42:17 +0000 |
---|---|---|
committer | Stefan Kempf <stefan@cvs.openbsd.org> | 2008-04-06 19:42:17 +0000 |
commit | c2cc30252c777e6f1b89603a4578e63862ce5fcb (patch) | |
tree | da6b265cf508333844b5bace6bdfe8e5fe949579 /sys/kern/uipc_syscalls.c | |
parent | af99c54746da90cb1b5325999189814f825c0a55 (diff) |
In sendit(), len should be size_t, not int. Could cause it to return
wrong values on 64-bit machines otherwise. ok millert@, deraadt@
Diffstat (limited to 'sys/kern/uipc_syscalls.c')
-rw-r--r-- | sys/kern/uipc_syscalls.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/uipc_syscalls.c b/sys/kern/uipc_syscalls.c index 3627d7c4ce3..b7f17d0186a 100644 --- a/sys/kern/uipc_syscalls.c +++ b/sys/kern/uipc_syscalls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_syscalls.c,v 1.66 2006/10/23 07:13:56 henning Exp $ */ +/* $OpenBSD: uipc_syscalls.c,v 1.67 2008/04/06 19:42:16 stefan Exp $ */ /* $NetBSD: uipc_syscalls.c,v 1.19 1996/02/09 19:00:48 christos Exp $ */ /* @@ -450,7 +450,8 @@ sendit(struct proc *p, int s, struct msghdr *mp, int flags, register_t *retsize) struct iovec *iov; int i; struct mbuf *to, *control; - int len, error; + size_t len; + int error; #ifdef KTRACE struct iovec *ktriov = NULL; #endif |