diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2016-05-18 01:13:14 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2016-05-18 01:13:14 +0000 |
commit | dbdcf593518ace5711e4be46299f4e4d76ac2ddc (patch) | |
tree | 9ebef71538bd6f30a4fe8841998a0eb9ef9ba8cf /sys/kern/uipc_syscalls.c | |
parent | 48c8c841e9f09894aa9f432de8750c12d7c253b0 (diff) |
Remove unnecessary cast of buflen to u_int in sockargs(). This was
missed when buflen was promoted to size_t. OK tedu@
Diffstat (limited to 'sys/kern/uipc_syscalls.c')
-rw-r--r-- | sys/kern/uipc_syscalls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/uipc_syscalls.c b/sys/kern/uipc_syscalls.c index cce2d219db0..b00760dd939 100644 --- a/sys/kern/uipc_syscalls.c +++ b/sys/kern/uipc_syscalls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_syscalls.c,v 1.131 2016/01/08 05:50:08 guenther Exp $ */ +/* $OpenBSD: uipc_syscalls.c,v 1.132 2016/05/18 01:13:13 millert Exp $ */ /* $NetBSD: uipc_syscalls.c,v 1.19 1996/02/09 19:00:48 christos Exp $ */ /* @@ -1110,7 +1110,7 @@ sockargs(struct mbuf **mp, const void *buf, size_t buflen, int type) /* Allocate an mbuf to hold the arguments. */ m = m_get(M_WAIT, type); - if ((u_int)buflen > MLEN) { + if (buflen > MLEN) { MCLGET(m, M_WAITOK); if ((m->m_flags & M_EXT) == 0) { m_free(m); |