HomeFreeBSD

kvm_write: fix -Wcast-qual warning in pointer arithmetic argument

Description

kvm_write: fix -Wcast-qual warning in pointer arithmetic argument

Cast buf to const char * when doing arithmetic operation to match
cp's type [1].

Differential Revision: D10082
MFC after: 1 week
Reviewed by: cem (earlier diff), vangyzen
Submitted by: cem [1]
Sponsored by: Dell EMC Isilon

Details

Provenance
ngieAuthored on
Reviewer
cem
Differential Revision
D10082: kvm_write: fix -Wcast-qual warning in pointer arithmetic argument
Parents
rS315687: Document sbuf_hexdump(9) in just sbuf(9)
Branches
Unknown
Tags
Unknown