Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Use IF_IS_EMPTY and IFQ_IS_EMPTY instead of accessin...
details: https://anonhg.NetBSD.org/src/rev/d5165b425e20
branches: trunk
changeset: 522023:d5165b425e20
user: martin <martin%NetBSD.org@localhost>
date: Sun Feb 10 15:17:21 2002 +0000
description:
Use IF_IS_EMPTY and IFQ_IS_EMPTY instead of accessing queue members
directly. Noticed by Thomas Klausner.
diffstat:
sys/net/if_spppsubr.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 5eaf30d987a6 -r d5165b425e20 sys/net/if_spppsubr.c
--- a/sys/net/if_spppsubr.c Sun Feb 10 15:17:20 2002 +0000
+++ b/sys/net/if_spppsubr.c Sun Feb 10 15:17:21 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_spppsubr.c,v 1.43 2002/01/21 11:37:29 martin Exp $ */
+/* $NetBSD: if_spppsubr.c,v 1.44 2002/02/10 15:17:21 martin Exp $ */
/*
* Synchronous PPP/Cisco link level subroutines.
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_spppsubr.c,v 1.43 2002/01/21 11:37:29 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_spppsubr.c,v 1.44 2002/02/10 15:17:21 martin Exp $");
#include "opt_inet.h"
#include "opt_ipx.h"
@@ -1000,8 +1000,8 @@
int empty, s;
s = splnet();
- empty = !sp->pp_fastq.ifq_head && !sp->pp_cpq.ifq_head &&
- !sp->pp_if.if_snd.ifq_head;
+ empty = IF_IS_EMPTY(&sp->pp_fastq) && IF_IS_EMPTY(&sp->pp_cpq) &&
+ IFQ_IS_EMPTY(&sp->pp_if.if_snd);
splx(s);
return (empty);
}
Home |
Main Index |
Thread Index |
Old Index