diff options
author | Marco Peereboom <marco@cvs.openbsd.org> | 2010-04-28 11:46:24 +0000 |
---|---|---|
committer | Marco Peereboom <marco@cvs.openbsd.org> | 2010-04-28 11:46:24 +0000 |
commit | 5a737c4945be1385b0ccd74235a2e4ae0a6c8a86 (patch) | |
tree | 68670a765a64acd7333cc5ac82e78314693c77f0 /sys | |
parent | f833c36c0e16bfb2361451534bbf5d7217f13219 (diff) |
Fix gcc4 warning
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ic/mpi.c | 4 |
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: |