From: dlg Date: Wed, 7 Jan 2015 04:56:56 +0000 (+0000) Subject: replace bcopy with memcpy. still cant see the bug im looking for. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=079e5c1d7e7e1d1bef28ba12b8429fd9ae6a5e55;p=openbsd replace bcopy with memcpy. still cant see the bug im looking for. --- diff --git a/sys/dev/pci/mfii.c b/sys/dev/pci/mfii.c index bdce08253d2..9b0048a34e4 100644 --- a/sys/dev/pci/mfii.c +++ b/sys/dev/pci/mfii.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mfii.c,v 1.21 2015/01/07 04:46:18 dlg Exp $ */ +/* $OpenBSD: mfii.c,v 1.22 2015/01/07 04:56:56 dlg Exp $ */ /* * Copyright (c) 2012 David Gwynne @@ -1047,7 +1047,7 @@ mfii_mgmt(struct mfii_softc *sc, struct mfii_ccb *ccb, case SCSI_DATA_OUT: ccb->ccb_direction = MFII_DATA_OUT; hdr->mfh_flags = htole16(MFI_FRAME_DIR_WRITE); - bcopy(buf, dma_buf, len); + memcpy(dma_buf, buf, len); break; } @@ -1079,7 +1079,7 @@ mfii_mgmt(struct mfii_softc *sc, struct mfii_ccb *ccb, rv = 0; if (ccb->ccb_direction == MFII_DATA_IN) - bcopy(dma_buf, buf, len); + memcpy(buf, dma_buf, len); } done: @@ -1440,7 +1440,7 @@ mfii_scsi_cmd_cdb(struct mfii_softc *sc, struct scsi_xfer *xs) io->direction = MPII_SCSIIO_DIR_NONE; break; } - bcopy(xs->cmd, io->cdb, xs->cmdlen); + memcpy(io->cdb, xs->cmd, xs->cmdlen); ctx->virtual_disk_target_id = htole16(link->target); @@ -1551,7 +1551,7 @@ mfii_pd_scsi_cmd_cdb(struct mfii_softc *sc, struct scsi_xfer *xs) io->direction = MPII_SCSIIO_DIR_NONE; break; } - bcopy(xs->cmd, io->cdb, xs->cmdlen); + memcpy(io->cdb, xs->cmd, xs->cmdlen); ctx->virtual_disk_target_id = htole16(link->target); ctx->raid_flags = MFII_RAID_CTX_IO_TYPE_SYSPD;