From 12ded4c357f29f33cfa0b95993b7e81df486f1dd Mon Sep 17 00:00:00 2001 From: Terin Stock Date: Tue, 31 Dec 2024 05:36:48 +0100 Subject: sys-kernel/vtty: new package, add 0_p20230917 --- sys-kernel/vtty/files/vtty-tty_operations.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 sys-kernel/vtty/files/vtty-tty_operations.patch (limited to 'sys-kernel/vtty/files/vtty-tty_operations.patch') diff --git a/sys-kernel/vtty/files/vtty-tty_operations.patch b/sys-kernel/vtty/files/vtty-tty_operations.patch new file mode 100644 index 0000000..6974fe0 --- /dev/null +++ b/sys-kernel/vtty/files/vtty-tty_operations.patch @@ -0,0 +1,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]; -- cgit v1.2.3