patch-1.3.15 linux/drivers/char/vc_screen.c

Next file: linux/drivers/char/vt.c
Previous file: linux/drivers/char/tty_io.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.14/linux/drivers/char/vc_screen.c linux/drivers/char/vc_screen.c
@@ -118,12 +118,12 @@
 }
 
 static int
-vcs_write(struct inode *inode, struct file *file, char *buf, int count)
+vcs_write(struct inode *inode, struct file *file, const char *buf, int count)
 {
 	unsigned long p = file->f_pos;
 	unsigned int cons = MINOR(inode->i_rdev);
 	int viewed, attr, size, written;
-	char *buf0;
+	const char *buf0;
 	unsigned short *org;
 
 	attr = (cons & 128);
@@ -169,7 +169,7 @@
 			org++;
 		}
 		while (count > 1) {
-			scr_writew(get_user((unsigned short *) buf), org++);
+			scr_writew(get_user((const unsigned short *) buf), org++);
 			buf += 2;
 			count -= 2;
 		}

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