summaryrefslogtreecommitdiff
path: root/sys/net/ppp_tty.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2011-07-05 20:03:24 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2011-07-05 20:03:24 +0000
commit80a69d1702a5e7d02728336a5646f7a53b6e119c (patch)
treef1edcbc851d01f73d3046f8f1fb737fc663658c4 /sys/net/ppp_tty.c
parent98496011e4b89d0128c49a06701a42ddda706d24 (diff)
IFQ_IS_EMPTY instead of fiddling with ifqueue internals
isn't it awesome that 5 out of 6 cases of this crap were in the various ppp implementations? ok claudio ryan the 6th to be fixed when we return from MEC
Diffstat (limited to 'sys/net/ppp_tty.c')
-rw-r--r--sys/net/ppp_tty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/ppp_tty.c b/sys/net/ppp_tty.c
index d2272bcd9b2..87c8de654bd 100644
--- a/sys/net/ppp_tty.c
+++ b/sys/net/ppp_tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ppp_tty.c,v 1.20 2003/12/10 07:22:42 itojun Exp $ */
+/* $OpenBSD: ppp_tty.c,v 1.21 2011/07/05 20:03:23 henning Exp $ */
/* $NetBSD: ppp_tty.c,v 1.12 1997/03/24 21:23:10 christos Exp $ */
/*
@@ -311,7 +311,7 @@ pppread(tp, uio, flag)
splx(s);
return 0;
}
- if (sc->sc_inq.ifq_head != NULL)
+ if (!IFQ_IS_EMPTY(sc->sc_inq))
break;
if ((tp->t_state & TS_CARR_ON) == 0 && (tp->t_cflag & CLOCAL) == 0
&& (tp->t_state & TS_ISOPEN)) {