tty: make tty_operations::write()'s count size_t
[linux-block.git] / drivers / tty / pty.c
index 335f5744f320c0bf17942b0a23065257459601ab..df08f13052ff4b53f19f28803ea9baedfb64c718 100644 (file)
@@ -108,7 +108,7 @@ static void pty_unthrottle(struct tty_struct *tty)
  *     the other side of the pty/tty pair.
  */
 
-static int pty_write(struct tty_struct *tty, const u8 *buf, int c)
+static ssize_t pty_write(struct tty_struct *tty, const u8 *buf, size_t c)
 {
        struct tty_struct *to = tty->link;