summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2011-07-06 02:51:16 +0000
committerhenning <henning@openbsd.org>2011-07-06 02:51:16 +0000
commit4550b48d8cc6af71bac1e59c35c2b08c9e474c39 (patch)
treef45fa5f214cc96f73865a18245478d8faccc6a78
parentsecond trial: stop messing with ifq internals, this time use IF_IS_EMPTY (diff)
downloadwireguard-openbsd-4550b48d8cc6af71bac1e59c35c2b08c9e474c39.tar.xz
wireguard-openbsd-4550b48d8cc6af71bac1e59c35c2b08c9e474c39.zip
use IF_IS_EMPTY istead of mucking if ifqueue internals
-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 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)) {