we don't have to cast to caddr_t when calling m_copydata anymore.
authordlg <dlg@openbsd.org>
Thu, 25 Feb 2021 02:48:19 +0000 (02:48 +0000)
committerdlg <dlg@openbsd.org>
Thu, 25 Feb 2021 02:48:19 +0000 (02:48 +0000)
commit5c7fed39bd376c774afa6b5ea3c41fd50de48416
tree545f293afa31dc5fd22bd212fb767e1a9dfdb082
parentbbe404a34aac08502909dc7c15a9c699de9d421c
we don't have to cast to caddr_t when calling m_copydata anymore.

the first cut of this diff was made with coccinelle using this spatch:

@rule@
type caddr_t;
expression m, off, len, cp;
@@
-m_copydata(m, off, len, (caddr_t)cp)
+m_copydata(m, off, len, cp)

i had fix it's opinionated idea of formatting by hand though, so
i'm not sure it was worth it.

ok deraadt@ bluhm@
29 files changed:
sys/arch/armv7/sunxi/sxie.c
sys/arch/octeon/dev/octcrypto.c
sys/dev/ic/acx.c
sys/dev/ic/an.c
sys/dev/ic/if_wi.c
sys/dev/pci/if_bwfm_pci.c
sys/dev/pci/if_mcx.c
sys/dev/pci/safe.c
sys/dev/pci/ubsec.c
sys/dev/usb/if_athn_usb.c
sys/dev/usb/if_otus.c
sys/dev/usb/if_rsu.c
sys/dev/usb/if_uath.c
sys/dev/usb/if_urtw.c
sys/net/bridgectl.c
sys/net/if_bridge.c
sys/net/if_pfsync.c
sys/net/if_pppx.c
sys/net/if_switch.c
sys/net/if_vlan.c
sys/net/if_vxlan.c
sys/net/pipex.c
sys/net/rtsock.c
sys/net/switchofp.c
sys/netinet/ip_ah.c
sys/netinet/ip_esp.c
sys/netinet/ip_icmp.c
sys/netinet/tcp_subr.c
sys/netinet6/ip6_input.c