summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty_pty.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/tty_pty.c')
-rw-r--r--sys/kern/tty_pty.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/kern/tty_pty.c b/sys/kern/tty_pty.c
index 098108c..94923be 100644
--- a/sys/kern/tty_pty.c
+++ b/sys/kern/tty_pty.c
@@ -425,8 +425,7 @@ ptcread(dev, uio, flag)
if (pti->pt_send & TIOCPKT_IOCTL) {
cc = min(uio->uio_resid,
sizeof(tp->t_termios));
- uiomove((caddr_t)&tp->t_termios, cc,
- uio);
+ uiomove(&tp->t_termios, cc, uio);
}
pti->pt_send = 0;
return (0);
@@ -561,7 +560,7 @@ again:
cc = min(uio->uio_resid, BUFSIZ);
cc = min(cc, TTYHOG - 1 - tp->t_canq.c_cc);
cp = locbuf;
- error = uiomove((caddr_t)cp, cc, uio);
+ error = uiomove(cp, cc, uio);
if (error)
return (error);
/* check again for safety */
@@ -596,7 +595,7 @@ again:
if (cc == 0) {
cc = min(uio->uio_resid, BUFSIZ);
cp = locbuf;
- error = uiomove((caddr_t)cp, cc, uio);
+ error = uiomove(cp, cc, uio);
if (error)
return (error);
/* check again for safety */
OpenPOWER on IntegriCloud