summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorStefan Kempf <stefan@cvs.openbsd.org>2008-04-06 19:42:17 +0000
committerStefan Kempf <stefan@cvs.openbsd.org>2008-04-06 19:42:17 +0000
commitc2cc30252c777e6f1b89603a4578e63862ce5fcb (patch)
treeda6b265cf508333844b5bace6bdfe8e5fe949579 /sys
parentaf99c54746da90cb1b5325999189814f825c0a55 (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')
-rw-r--r--sys/kern/uipc_syscalls.c5
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