diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2002-11-19 18:34:42 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2002-11-19 18:34:42 +0000 |
commit | c9e49ad98cb86122f4be405756296ca6ce04c29e (patch) | |
tree | 02b2dac0109f5acfd31e21004d2093bab31807aa | |
parent | 9e35a7c1e2322f042bad6cf8d79cf2284eac94f0 (diff) |
Use queue.h macros
-rw-r--r-- | sys/netinet/ip_ipsp.c | 16 | ||||
-rw-r--r-- | sys/uvm/uvm_vnode.c | 4 |
2 files changed, 10 insertions, 10 deletions
diff --git a/sys/netinet/ip_ipsp.c b/sys/netinet/ip_ipsp.c index a9c8d1bd301..8ef0062dca2 100644 --- a/sys/netinet/ip_ipsp.c +++ b/sys/netinet/ip_ipsp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_ipsp.c,v 1.149 2002/06/09 16:26:10 itojun Exp $ */ +/* $OpenBSD: ip_ipsp.c,v 1.150 2002/11/19 18:34:41 jason Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), * Angelos D. Keromytis (kermit@csd.uch.gr), @@ -1322,7 +1322,7 @@ ipsp_parse_headers(struct mbuf *m, int off, u_int8_t proto) M_NOWAIT); if (mtag == NULL) - return tags.slh_first; + return SLIST_FIRST(&tags); tdbi = (struct tdb_ident *) (mtag + 1); bzero(tdbi, sizeof(struct tdb_ident)); @@ -1381,7 +1381,7 @@ ipsp_parse_headers(struct mbuf *m, int off, u_int8_t proto) tdb = gettdb(spi, &su, IPPROTO_ESP); if (tdb == NULL) { splx(s); - return tags.slh_first; + return SLIST_FIRST(&tags); } /* How large is the ESP header ? We use this later. */ @@ -1399,7 +1399,7 @@ ipsp_parse_headers(struct mbuf *m, int off, u_int8_t proto) */ if (tdb->tdb_flags & TDBF_RANDOMPADDING) { splx(s); - return tags.slh_first; + return SLIST_FIRST(&tags); } /* Update the length of trailing ESP authenticators. */ @@ -1415,13 +1415,13 @@ ipsp_parse_headers(struct mbuf *m, int off, u_int8_t proto) /* Verify the self-describing padding values. */ if (lasteight[6] != 0) { if (lasteight[6] != lasteight[5]) - return tags.slh_first; + return SLIST_FIRST(&tags); for (i = 4; lasteight[i + 1] != 1 && i >= 0; i--) if (lasteight[i + 1] != lasteight[i] + 1) - return tags.slh_first; + return SLIST_FIRST(&tags); } } /* Fall through. */ @@ -1429,7 +1429,7 @@ ipsp_parse_headers(struct mbuf *m, int off, u_int8_t proto) mtag = m_tag_get(PACKET_TAG_IPSEC_IN_CRYPTO_DONE, sizeof(struct tdb_ident), M_NOWAIT); if (mtag == NULL) - return tags.slh_first; + return SLIST_FIRST(&tags); tdbi = (struct tdb_ident *) (mtag + 1); bzero(tdbi, sizeof(struct tdb_ident)); @@ -1481,7 +1481,7 @@ ipsp_parse_headers(struct mbuf *m, int off, u_int8_t proto) break; default: - return tags.slh_first; /* We're done. */ + return SLIST_FIRST(&tags); /* We're done. */ } } } diff --git a/sys/uvm/uvm_vnode.c b/sys/uvm/uvm_vnode.c index c908a4be38b..e09fb89258b 100644 --- a/sys/uvm/uvm_vnode.c +++ b/sys/uvm/uvm_vnode.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_vnode.c,v 1.35 2002/09/11 23:16:44 mickey Exp $ */ +/* $OpenBSD: uvm_vnode.c,v 1.36 2002/11/19 18:34:41 jason Exp $ */ /* $NetBSD: uvm_vnode.c,v 1.36 2000/11/24 20:34:01 chs Exp $ */ /* @@ -1993,7 +1993,7 @@ uvm_vnp_sync(mp) * (so we can now safely lock uvn's again). */ - for (uvn = uvn_sync_q.sqh_first ; uvn ; uvn = uvn->u_syncq.sqe_next) { + SIMPLEQ_FOREACH(uvn, &uvn_sync_q, u_syncq) { simple_lock(&uvn->u_obj.vmobjlock); #ifdef DEBUG if (uvn->u_flags & UVM_VNODE_DYING) { |