summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netgraph/ng_tty.c')
-rw-r--r--sys/netgraph/ng_tty.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/netgraph/ng_tty.c b/sys/netgraph/ng_tty.c
index d9a6849..380bcdf 100644
--- a/sys/netgraph/ng_tty.c
+++ b/sys/netgraph/ng_tty.c
@@ -331,15 +331,18 @@ ngt_tioctl(struct tty *tp, u_long cmd, caddr_t data, int flag, struct thread *td
static int
ngt_input(int c, struct tty *tp)
{
- const sc_p sc = (sc_p) tp->t_lsc;
- const node_p node = sc->node;
+ sc_p sc;
+ node_p node;
struct mbuf *m;
int error = 0;
+ sc = (sc_p) tp->t_lsc;
if (sc == NULL)
/* No node attached */
return (0);
+ node = sc->node;
+
if (tp != sc->tp)
panic("ngt_input");
OpenPOWER on IntegriCloud