summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMarco Peereboom <marco@cvs.openbsd.org>2010-04-28 11:46:24 +0000
committerMarco Peereboom <marco@cvs.openbsd.org>2010-04-28 11:46:24 +0000
commit5a737c4945be1385b0ccd74235a2e4ae0a6c8a86 (patch)
tree68670a765a64acd7333cc5ac82e78314693c77f0 /sys/dev
parentf833c36c0e16bfb2361451534bbf5d7217f13219 (diff)
Fix gcc4 warning
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/mpi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/mpi.c b/sys/dev/ic/mpi.c
index fbd974b474a..4b1cfc739fb 100644
--- a/sys/dev/ic/mpi.c
+++ b/sys/dev/ic/mpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpi.c,v 1.145 2010/04/22 12:33:30 oga Exp $ */
+/* $OpenBSD: mpi.c,v 1.146 2010/04/28 11:46:23 marco Exp $ */
/*
* Copyright (c) 2005, 2006, 2009 David Gwynne <dlg@openbsd.org>
@@ -2957,7 +2957,7 @@ mpi_ioctl_disk(struct mpi_softc *sc, struct bioc_disk *bd)
bd->bd_target = pdpg0.phys_disk_id;
bd->bd_lun = 0;
bd->bd_size = (u_quad_t)letoh32(pdpg0.max_lba) * 512;
- strlcpy(bd->bd_vendor, pdpg0.vendor_id, sizeof(bd->bd_vendor));
+ strlcpy(bd->bd_vendor, (char *)pdpg0.vendor_id, sizeof(bd->bd_vendor));
switch (pdpg0.phys_disk_state) {
case MPI_CFG_RAID_PHYDISK_0_STATE_ONLINE: