diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2011-07-06 02:51:17 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2011-07-06 02:51:17 +0000 |
commit | ae0b35589d05951514ff0592a8bdda6ba9131ab7 (patch) | |
tree | e1edcc2157b5fa611af66f2a195624885c571d7a /sys/net | |
parent | f490234c4ca430fa3cf2703a2910d03cdd226939 (diff) |
use IF_IS_EMPTY istead of mucking if ifqueue internals
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/ppp_tty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/ppp_tty.c b/sys/net/ppp_tty.c index a448c335b62..02dd4f51a4d 100644 --- a/sys/net/ppp_tty.c +++ b/sys/net/ppp_tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ppp_tty.c,v 1.22 2011/07/05 21:11:36 guenther Exp $ */ +/* $OpenBSD: ppp_tty.c,v 1.23 2011/07/06 02:51:16 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 (!IF_IS_EMPTY(&sc->sc_inq)) break; if ((tp->t_state & TS_CARR_ON) == 0 && (tp->t_cflag & CLOCAL) == 0 && (tp->t_state & TS_ISOPEN)) { |