diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2021-02-25 02:43:33 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2021-02-25 02:43:33 +0000 |
commit | cb17d84caf8abcf80d072c6fbc33a22324e06358 (patch) | |
tree | d3d4e78b3a2748a903aa58ef3e675827629ccbdb /sys/kern | |
parent | 73798878284c2f9f6b0e6f8dfb202a274de4b8f7 (diff) |
let m_copydata use a void * instead of caddr_t
i'm not a fan of having to cast to caddr_t when we have modern
inventions like void *s we can take advantage of.
ok claudio@ mvs@ bluhm@
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/uipc_mbuf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c index 21b1d7279be..5bf8c99f68f 100644 --- a/sys/kern/uipc_mbuf.c +++ b/sys/kern/uipc_mbuf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_mbuf.c,v 1.277 2021/01/13 12:38:36 bluhm Exp $ */ +/* $OpenBSD: uipc_mbuf.c,v 1.278 2021/02/25 02:43:32 dlg Exp $ */ /* $NetBSD: uipc_mbuf.c,v 1.15.4.1 1996/06/13 17:11:44 cgd Exp $ */ /* @@ -711,8 +711,9 @@ nospace: * continuing for "len" bytes, into the indicated buffer. */ void -m_copydata(struct mbuf *m, int off, int len, caddr_t cp) +m_copydata(struct mbuf *m, int off, int len, void *p) { + caddr_t cp = p; unsigned count; if (off < 0) |