diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2016-10-16 19:07:06 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2016-10-16 19:07:06 +0000 |
commit | 735058abc2f8e8bcb2c56a61f5bb5582085da8c8 (patch) | |
tree | fd4f67f826d633b8c418183dad102908446751be /usr.sbin | |
parent | 3f0dad54b9b7fbe7e951cb592fa147fbdc7bdde6 (diff) |
Prefer memcpy/memmove over bcopy
ok mlarkin@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/vmd/virtio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/vmd/virtio.c b/usr.sbin/vmd/virtio.c index 57dbdb9d193..a20d81a64fd 100644 --- a/usr.sbin/vmd/virtio.c +++ b/usr.sbin/vmd/virtio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: virtio.c,v 1.22 2016/10/12 06:56:54 mlarkin Exp $ */ +/* $OpenBSD: virtio.c,v 1.23 2016/10/16 19:07:05 guenther Exp $ */ /* * Copyright (c) 2015 Mike Larkin <mlarkin@openbsd.org> @@ -1308,7 +1308,7 @@ virtio_init(struct vm_create_params *vcp, int *child_disks, int *child_taps) if (memcmp(zero_mac, &vcp->vcp_macs[i], 6) != 0) { vionet[i].cfg.device_feature = VIRTIO_NET_F_MAC; - bcopy(&vcp->vcp_macs[i], &vionet[i].mac, 6); + memcpy(&vionet[i].mac, &vcp->vcp_macs[i], 6); } } } |