From 69669d0e56a41b937b60f9c0844ffc9f87cf335c Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sun, 20 Dec 1998 23:51:32 +0000 Subject: Use IOV_MAX, not the deprecated UIO_MAXIOV --- sys/compat/common/uipc_syscalls_43.c | 6 +++--- 1 file 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 *, -- cgit v1.2.3