patch-2.0.36 linux/drivers/scsi/dtc.c

Next file: linux/drivers/scsi/eata.c
Previous file: linux/drivers/scsi/aic7xxx_seq.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.35/linux/drivers/scsi/dtc.c linux/drivers/scsi/dtc.c
@@ -176,7 +176,7 @@
       base = NULL;
 
       if (overrides[current_override].address)
-	 base = overrides[current_override].address;
+	 base = (unsigned char *)overrides[current_override].address;
       else
 	 for (; !base && (current_base < NO_BASES); ++current_base) {
 #if (DTCDEBUG & DTCDEBUG_INIT)
@@ -184,9 +184,9 @@
 #endif
 	 for (sig = 0; sig < NO_SIGNATURES; ++sig)
 	    if (!bases[current_base].noauto && !memcmp
-	      (bases[current_base].address + signatures[sig].offset,
+	      ((unsigned char *)(bases[current_base].address + signatures[sig].offset),
 	      signatures[sig].string, strlen(signatures[sig].string))) {
-	    base = bases[current_base].address;
+	    base = (unsigned char *)bases[current_base].address;
 #if (DTCDEBUG & DTCDEBUG_INIT)
 	    printk("scsi-dtc : detected board.\n");
 #endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov