blob: 6974fe0a3f7925756e8e5456376680d8d4386830 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
diff --git a/vtty.c b/vtty.c
index b3c6c65..6aef89a 100644
--- a/vtty.c
+++ b/vtty.c
@@ -105,7 +105,7 @@ static void vtty_close(struct tty_struct *tty, struct file *filp)
return;
}
-static int vtty_write(struct tty_struct *tty, const unsigned char *buf, int count)
+static ssize_t vtty_write(struct tty_struct *tty, const u8 *buf, size_t count)
{
// the TTY layer manages -EAGAIN and (non-)blocking writes
struct vtty_port *port = &ports[tty->index];
|