diff options
| author | 2012-04-13 09:38:32 +0000 | |
|---|---|---|
| committer | 2012-04-13 09:38:32 +0000 | |
| commit | e635570d2fc19c957f7ba2f7c8ea9b66662e9fac (patch) | |
| tree | 4ce516cbdbe0786fdf3ce4b47053402a692d7d15 /sys/kern/uipc_socket2.c | |
| parent | Add sigwaitinfo and sigtimedwait stubs under #if 0; a bit more kernel (diff) | |
| download | wireguard-openbsd-e635570d2fc19c957f7ba2f7c8ea9b66662e9fac.tar.xz wireguard-openbsd-e635570d2fc19c957f7ba2f7c8ea9b66662e9fac.zip | |
unneccessary casts to unsigned; ok claudio
Diffstat (limited to 'sys/kern/uipc_socket2.c')
| -rw-r--r-- | sys/kern/uipc_socket2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/uipc_socket2.c b/sys/kern/uipc_socket2.c index 6d3ddb84bc8..7a04f0d4c12 100644 --- a/sys/kern/uipc_socket2.c +++ b/sys/kern/uipc_socket2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_socket2.c,v 1.52 2011/04/04 21:11:22 claudio Exp $ */ +/* $OpenBSD: uipc_socket2.c,v 1.53 2012/04/13 09:38:32 deraadt Exp $ */ /* $NetBSD: uipc_socket2.c,v 1.11 1996/02/04 02:17:55 christos Exp $ */ /* @@ -787,7 +787,7 @@ sbcompress(struct sockbuf *sb, struct mbuf *m, struct mbuf *n) m->m_len <= M_TRAILINGSPACE(n) && n->m_type == m->m_type) { bcopy(mtod(m, caddr_t), mtod(n, caddr_t) + n->m_len, - (unsigned)m->m_len); + m->m_len); n->m_len += m->m_len; sb->sb_cc += m->m_len; if (m->m_type != MT_CONTROL && m->m_type != MT_SONAME) |
