patch-1.3.15 linux/drivers/scsi/constants.c

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

diff -u --recursive --new-file v1.3.14/linux/drivers/scsi/constants.c linux/drivers/scsi/constants.c
@@ -154,13 +154,13 @@
 struct error_info{
     unsigned char code1, code2;
     unsigned short int devices;
-    char * text;
+    const char * text;
 };
 
 struct error_info2{
     unsigned char code1, code2_min, code2_max;
     unsigned short int devices;
-    char * text;
+    const char * text;
 };
 
 static struct error_info2 additional2[] =
@@ -367,7 +367,7 @@
 #endif
 
 #if (CONSTANTS & CONST_SENSE)
-static char *snstext[] = {
+static const char *snstext[] = {
     "None","Recovered Error","Not Ready","Medium Error","Hardware Error",
     "Illegal Request","Unit Attention","Data Protect","Blank Check",
     "Key=9","Copy Aborted","Aborted Command","End-Of-Medium",
@@ -376,12 +376,12 @@
 
 
 /* Print sense information */
-void print_sense(char * devclass, Scsi_Cmnd * SCpnt)
+void print_sense(const char * devclass, Scsi_Cmnd * SCpnt)
 {
     int i, s;
     int sense_class, valid, code;
     unsigned char * sense_buffer = SCpnt->sense_buffer;
-    char * error = NULL;
+    const char * error = NULL;
     int dev = SCpnt->request.dev;
     
     sense_class = (sense_buffer[0] >> 4) & 0x07;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this