summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2007-11-07 08:19:19 +0100
committerWolfgang Denk <wd@denx.de>2007-11-16 22:42:03 +0100
commit7a60ee7c6248a958c5757d3660a1702723a2786d (patch)
treed66ff509cce000c158fdde051b4a8a4e6b98dcab /common
parent992742a5b09d9040adbd156fb90756af66ade310 (diff)
downloadu-boot-imx-7a60ee7c6248a958c5757d3660a1702723a2786d.zip
u-boot-imx-7a60ee7c6248a958c5757d3660a1702723a2786d.tar.gz
u-boot-imx-7a60ee7c6248a958c5757d3660a1702723a2786d.tar.bz2
Fix warning differ in signedness in common/cmd_ide.c
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'common')
-rw-r--r--common/cmd_ide.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/common/cmd_ide.c b/common/cmd_ide.c
index bb064ea..27cecac 100644
--- a/common/cmd_ide.c
+++ b/common/cmd_ide.c
@@ -1136,9 +1136,9 @@ static void ide_ident (block_dev_desc_t *dev_desc)
input_swap_data (device, iobuf, ATA_SECTORWORDS);
- ident_cpy (dev_desc->revision, iop->fw_rev, sizeof(dev_desc->revision));
- ident_cpy (dev_desc->vendor, iop->model, sizeof(dev_desc->vendor));
- ident_cpy (dev_desc->product, iop->serial_no, sizeof(dev_desc->product));
+ ident_cpy ((unsigned char*)dev_desc->revision, iop->fw_rev, sizeof(dev_desc->revision));
+ ident_cpy ((unsigned char*)dev_desc->vendor, iop->model, sizeof(dev_desc->vendor));
+ ident_cpy ((unsigned char*)dev_desc->product, iop->serial_no, sizeof(dev_desc->product));
#ifdef __LITTLE_ENDIAN
/*
* firmware revision and model number have Big Endian Byte
@@ -1953,9 +1953,9 @@ static void atapi_inquiry(block_dev_desc_t * dev_desc)
return;
/* copy device ident strings */
- ident_cpy(dev_desc->vendor,&iobuf[8],8);
- ident_cpy(dev_desc->product,&iobuf[16],16);
- ident_cpy(dev_desc->revision,&iobuf[32],5);
+ ident_cpy((unsigned char*)dev_desc->vendor,&iobuf[8],8);
+ ident_cpy((unsigned char*)dev_desc->product,&iobuf[16],16);
+ ident_cpy((unsigned char*)dev_desc->revision,&iobuf[32],5);
dev_desc->lun=0;
dev_desc->lba=0;