diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2012-02-21 01:05:12 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2012-02-21 01:05:12 +0000 |
commit | 526d0bd547574b185147f03c13e2db7abe566a08 (patch) | |
tree | d0d078391c4959fc08545db4ab619daadd9cf1d9 /sys/kern/tty_ttydisc.c | |
parent | 57a82ba4d95159d3623b0d401cfc3cc8f6357c28 (diff) | |
download | src-526d0bd547574b185147f03c13e2db7abe566a08.tar.gz src-526d0bd547574b185147f03c13e2db7abe566a08.zip |
Notes
Diffstat (limited to 'sys/kern/tty_ttydisc.c')
-rw-r--r-- | sys/kern/tty_ttydisc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/tty_ttydisc.c b/sys/kern/tty_ttydisc.c index 1ac204b3aaa7..6d36de4e25b8 100644 --- a/sys/kern/tty_ttydisc.c +++ b/sys/kern/tty_ttydisc.c @@ -180,7 +180,7 @@ static int ttydisc_read_raw_no_timer(struct tty *tp, struct uio *uio, int ioflag) { size_t vmin = tp->t_termios.c_cc[VMIN]; - int oresid = uio->uio_resid; + ssize_t oresid = uio->uio_resid; int error; MPASS(tp->t_termios.c_cc[VTIME] == 0); @@ -265,7 +265,7 @@ static int ttydisc_read_raw_interbyte_timer(struct tty *tp, struct uio *uio, int ioflag) { size_t vmin = tp->t_termios.c_cc[VMIN]; - int oresid = uio->uio_resid; + ssize_t oresid = uio->uio_resid; int error; MPASS(tp->t_termios.c_cc[VMIN] != 0); @@ -1173,7 +1173,7 @@ int ttydisc_getc_uio(struct tty *tp, struct uio *uio) { int error = 0; - int obytes = uio->uio_resid; + ssize_t obytes = uio->uio_resid; size_t len; char buf[TTY_STACKBUF]; |