Fix warning differ in signedness in common/cmd_scsi.c
authorStefan Roese <sr@denx.de>
Sat, 17 Nov 2007 06:58:25 +0000 (07:58 +0100)
committerWolfgang Denk <wd@denx.de>
Sun, 18 Nov 2007 00:20:41 +0000 (01:20 +0100)
Signed-off-by: Stefan Roese <sr@denx.de>
common/cmd_scsi.c

index f56393107faa807623623c6694685b3fdac3716b..b2d4eb635c7500a6340a655fe7f7408293536449 100644 (file)
@@ -129,9 +129,12 @@ void scsi_scan(int mode)
                        if((modi&0x80)==0x80) /* drive is removable */
                                scsi_dev_desc[scsi_max_devs].removable=TRUE;
                        /* get info for this device */
-                       scsi_ident_cpy(&scsi_dev_desc[scsi_max_devs].vendor[0],&tempbuff[8],8);
-                       scsi_ident_cpy(&scsi_dev_desc[scsi_max_devs].product[0],&tempbuff[16],16);
-                       scsi_ident_cpy(&scsi_dev_desc[scsi_max_devs].revision[0],&tempbuff[32],4);
+                       scsi_ident_cpy((unsigned char *)&scsi_dev_desc[scsi_max_devs].vendor[0],
+                                      &tempbuff[8], 8);
+                       scsi_ident_cpy((unsigned char *)&scsi_dev_desc[scsi_max_devs].product[0],
+                                      &tempbuff[16], 16);
+                       scsi_ident_cpy((unsigned char *)&scsi_dev_desc[scsi_max_devs].revision[0],
+                                      &tempbuff[32], 4);
                        scsi_dev_desc[scsi_max_devs].target=pccb->target;
                        scsi_dev_desc[scsi_max_devs].lun=pccb->lun;