summaryrefslogtreecommitdiff
path: root/sys/kern/tty_pty.c
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2003-03-02 15:50:23 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2003-03-02 15:50:23 +0000
commitc9524588143453c41bc80aa19e97b9e18d6c4b8f (patch)
tree766aa4287191c9a533e33cf6294817571b513579 /sys/kern/tty_pty.c
parent78b7591cc594193ab1bed401e6fee1dd27a4a542 (diff)
Notes
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 098108cc80ab..94923be908f2 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 */