summaryrefslogtreecommitdiffstats
path: root/arch/um/include
diff options
context:
space:
mode:
authorWANG Cong2008-05-07 05:42:33 +0200
committerLinus Torvalds2008-05-08 19:46:55 +0200
commit3168cb98be7199325de633052680098660ccaf84 (patch)
tree32c86d233462f9c9afeb5dc4a57c833d9d86f1f4 /arch/um/include
parentmisc: fix integer as NULL pointer warnings (diff)
downloadkernel-qcow2-linux-3168cb98be7199325de633052680098660ccaf84.tar.gz
kernel-qcow2-linux-3168cb98be7199325de633052680098660ccaf84.tar.xz
kernel-qcow2-linux-3168cb98be7199325de633052680098660ccaf84.zip
uml: fix inconsistence due to tty_operation change
'put_char' of 'struct tty_operations' has changed from 'void' into 'int'. This can also shut up compiler warnings. Cc: Jeff Dike <jdike@addtoit.com> Signed-off-by: WANG Cong <wangcong@zeuux.org> Acked-by: Alan Cox <alan@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/um/include')
-rw-r--r--arch/um/include/line.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/include/line.h b/arch/um/include/line.h
index 1223f2c844b4..979b73e6352d 100644
--- a/arch/um/include/line.h
+++ b/arch/um/include/line.h
@@ -71,7 +71,7 @@ extern int line_setup(struct line *lines, unsigned int sizeof_lines,
char *init, char **error_out);
extern int line_write(struct tty_struct *tty, const unsigned char *buf,
int len);
-extern void line_put_char(struct tty_struct *tty, unsigned char ch);
+extern int line_put_char(struct tty_struct *tty, unsigned char ch);
extern void line_set_termios(struct tty_struct *tty, struct ktermios * old);
extern int line_chars_in_buffer(struct tty_struct *tty);
extern void line_flush_buffer(struct tty_struct *tty);