Skip to contentSkip to conversation

Fix warning differ in signedness in common/cmd_scsi.c

PATCH New Stefan Roese 2 participants 2 messages Nov 17, 2007 – Nov 18, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix warning differ in signedness in common/cmd_scsi.c

---
 common/cmd_scsi.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
common/cmd_scsi.c +6 -3
index f563931..b2d4eb6 100644
@@ -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;
 
Signature · 1 line
1.5.3.5.561.g140d
#1 lore raw

PATCH 1/1 Fix warning differ in signedness in common/cmd_scsi.c

common/cmd_scsi.c

Quoted 6 lines · In message <[email protected]> you wrote:
---
 common/cmd_scsi.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
common/cmd_scsi.c +0 -0

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
When in doubt, mumble;   when in trouble, delegate;  when in  charge,
ponder.                                             -- James H. Boren