summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2014-01-19 03:05:47 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2014-01-19 03:05:47 +0000
commit2350f355bec71b25f93356b563adf2ae950fb799 (patch)
tree37a629a781bb91c1760a18991eb902d2e3499410 /sys/dev
parent8eae80bbad925e99c7972a6014b8ce56645b846c (diff)
bcopy to memcpy
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_myx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_myx.c b/sys/dev/pci/if_myx.c
index 148ab2a7aa9..3d202d789f3 100644
--- a/sys/dev/pci/if_myx.c
+++ b/sys/dev/pci/if_myx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_myx.c,v 1.44 2014/01/19 03:03:50 dlg Exp $ */
+/* $OpenBSD: if_myx.c,v 1.45 2014/01/19 03:05:46 dlg Exp $ */
/*
* Copyright (c) 2007 Reyk Floeter <reyk@openbsd.org>
@@ -381,14 +381,14 @@ myx_loadfirmware(struct myx_softc *sc, const char *filename)
goto err;
}
- bcopy(fw + MYX_HEADER_POS, &offset, sizeof(offset));
+ memcpy(&offset, fw + MYX_HEADER_POS, sizeof(offset));
offset = betoh32(offset);
if ((offset + sizeof(hdr)) > fwlen) {
printf("%s: invalid firmware %s\n", DEVNAME(sc), filename);
goto err;
}
- bcopy(fw + offset, &hdr, sizeof(hdr));
+ memcpy(&hdr, fw + offset, sizeof(hdr));
DPRINTF(MYXDBG_INIT, "%s: "
"fw hdr off %u, length %u, type 0x%x, version %s\n",
DEVNAME(sc), offset, betoh32(hdr.fw_hdrlength),