patch-1.3.15 linux/include/linux/tty_ldisc.h

Next file: linux/include/linux/umsdos_fs.p
Previous file: linux/include/linux/tty_driver.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.14/linux/include/linux/tty_ldisc.h linux/include/linux/tty_ldisc.h
@@ -22,7 +22,7 @@
 	int	(*read)(struct tty_struct * tty, struct file * file,
 			unsigned char * buf, unsigned int nr);
 	int	(*write)(struct tty_struct * tty, struct file * file,
-			 unsigned char * buf, unsigned int nr);	
+			 const unsigned char * buf, unsigned int nr);	
 	int	(*ioctl)(struct tty_struct * tty, struct file * file,
 			 unsigned int cmd, unsigned long arg);
 	void	(*set_termios)(struct tty_struct *tty, struct termios * old);
@@ -33,7 +33,7 @@
 	/*
 	 * The following routines are called from below.
 	 */
-	void	(*receive_buf)(struct tty_struct *, unsigned char *cp,
+	void	(*receive_buf)(struct tty_struct *, const unsigned char *cp,
 			       char *fp, int count);
 	int	(*receive_room)(struct tty_struct *);
 	void	(*write_wakeup)(struct tty_struct *);

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