summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty_pty.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2003-03-02 15:50:23 +0000
committerdes <des@FreeBSD.org>2003-03-02 15:50:23 +0000
commit765ebc59b49b789f220d5975fee1fafe86545825 (patch)
tree766aa4287191c9a533e33cf6294817571b513579 /sys/kern/tty_pty.c
parent8ebe566c39e599ebbb91bc2ea8c7c2fc0c455ace (diff)
downloadFreeBSD-src-765ebc59b49b789f220d5975fee1fafe86545825.zip
FreeBSD-src-765ebc59b49b789f220d5975fee1fafe86545825.tar.gz
uiomove-related caddr_t -> void * (just the low-hanging fruit)
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