summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-12-20 23:51:32 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-12-20 23:51:32 +0000
commit69669d0e56a41b937b60f9c0844ffc9f87cf335c (patch)
tree89ffda175ba67d9f221bdf60f9ee3ef9b4c4365d
parent26b4dfe6bac165787d7bb9cd05b681e49f84143b (diff)
Use IOV_MAX, not the deprecated UIO_MAXIOV
-rw-r--r--sys/compat/common/uipc_syscalls_43.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/compat/common/uipc_syscalls_43.c b/sys/compat/common/uipc_syscalls_43.c
index bce6d2d9f46..7dc51f269b5 100644
--- a/sys/compat/common/uipc_syscalls_43.c
+++ b/sys/compat/common/uipc_syscalls_43.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipc_syscalls_43.c,v 1.5 1998/08/05 16:38:31 millert Exp $ */
+/* $OpenBSD: uipc_syscalls_43.c,v 1.6 1998/12/20 23:51:31 millert Exp $ */
/* $NetBSD: uipc_syscalls_43.c,v 1.5 1996/03/14 19:31:50 christos Exp $ */
/*
@@ -219,7 +219,7 @@ compat_43_sys_recvmsg(p, v, retval)
sizeof (struct omsghdr));
if (error)
return (error);
- if (msg.msg_iovlen <= 0 || msg.msg_iovlen > UIO_MAXIOV)
+ if (msg.msg_iovlen <= 0 || msg.msg_iovlen > IOV_MAX)
return (EMSGSIZE);
if (msg.msg_iovlen > UIO_SMALLIOV)
MALLOC(iov, struct iovec *,
@@ -291,7 +291,7 @@ compat_43_sys_sendmsg(p, v, retval)
sizeof (struct omsghdr));
if (error)
return (error);
- if (msg.msg_iovlen <= 0 || msg.msg_iovlen > UIO_MAXIOV)
+ if (msg.msg_iovlen <= 0 || msg.msg_iovlen > IOV_MAX)
return (EMSGSIZE);
if (msg.msg_iovlen > UIO_SMALLIOV)
MALLOC(iov, struct iovec *,