patch-1.3.15 linux/drivers/scsi/st.c
Next file: linux/drivers/scsi/u14-34f.c
Previous file: linux/drivers/scsi/sr.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Tue Aug 1 10:02:41 1995
- Orig file:
v1.3.14/linux/drivers/scsi/st.c
- Orig date:
Tue Jul 11 10:02:51 1995
diff -u --recursive --new-file v1.3.14/linux/drivers/scsi/st.c linux/drivers/scsi/st.c
@@ -117,7 +117,7 @@
int dev = SCpnt->request.dev;
int result = SCpnt->result;
unsigned char * sense = SCpnt->sense_buffer, scode;
- char *stp;
+ const char *stp;
if (!result /* && SCpnt->sense_buffer[0] == 0 */ )
return 0;
@@ -753,14 +753,14 @@
/* Write command */
static int
-st_write(struct inode * inode, struct file * filp, char * buf, int count)
+st_write(struct inode * inode, struct file * filp, const char * buf, int count)
{
int dev;
int total, do_count, blks, retval, transfer;
int write_threshold;
int doing_write = 0;
static unsigned char cmd[10];
- char *b_point;
+ const char *b_point;
Scsi_Cmnd * SCpnt;
Scsi_Tape * STp;
unsigned int flags;
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