summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/tty_pty.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/kern/tty_pty.c b/sys/kern/tty_pty.c
index 23533a4..625189c 100644
--- a/sys/kern/tty_pty.c
+++ b/sys/kern/tty_pty.c
@@ -214,14 +214,9 @@ ptsclose(struct cdev *dev, int flag, int mode, struct thread *td)
static int
ptsread(struct cdev *dev, struct uio *uio, int flag)
{
- struct thread *td = curthread;
- struct proc *p = td->td_proc;
struct tty *tp = dev->si_tty;
- struct ptsc *pt = dev->si_drv1;
- struct pgrp *pg;
int error = 0;
-again:
if (tp->t_oproc)
error = ttyld_read(tp, uio, flag);
ptcwakeup(tp, FWRITE);
@@ -463,7 +458,6 @@ ptcwrite(struct cdev *dev, struct uio *uio, int flag)
int cc = 0;
u_char locbuf[BUFSIZ];
int cnt = 0;
- struct ptsc *pt = dev->si_drv1;
int error = 0;
again:
OpenPOWER on IntegriCloud