diff options
| author | 2006-03-05 21:48:54 +0000 | |
|---|---|---|
| committer | 2006-03-05 21:48:54 +0000 | |
| commit | 1573508e4a2b79545b4e249a73d6b17aac49719c (patch) | |
| tree | 71ace380f161b052a5a1ed8e427236a217c5ad15 /sys/netinet6/raw_ip6.c | |
| parent | Sprinkle some tabs and a little cleaning. (diff) | |
| download | wireguard-openbsd-1573508e4a2b79545b4e249a73d6b17aac49719c.tar.xz wireguard-openbsd-1573508e4a2b79545b4e249a73d6b17aac49719c.zip | |
Use more queue macros rather than doing it by hand; ok otto@ krw@
Diffstat (limited to 'sys/netinet6/raw_ip6.c')
| -rw-r--r-- | sys/netinet6/raw_ip6.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/netinet6/raw_ip6.c b/sys/netinet6/raw_ip6.c index 5bbab8ca444..641cce0427b 100644 --- a/sys/netinet6/raw_ip6.c +++ b/sys/netinet6/raw_ip6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: raw_ip6.c,v 1.28 2004/08/23 01:30:30 itojun Exp $ */ +/* $OpenBSD: raw_ip6.c,v 1.29 2006/03/05 21:48:57 miod Exp $ */ /* $KAME: raw_ip6.c,v 1.69 2001/03/04 15:55:44 itojun Exp $ */ /* @@ -654,7 +654,7 @@ rip6_usrreq(so, req, m, nam, control, p) error = EINVAL; break; } - if ((ifnet.tqh_first == 0) || (addr->sin6_family != AF_INET6)) { + if (TAILQ_EMPTY(&ifnet) || (addr->sin6_family != AF_INET6)) { error = EADDRNOTAVAIL; break; } @@ -705,8 +705,7 @@ rip6_usrreq(so, req, m, nam, control, p) error = EINVAL; break; } - if (ifnet.tqh_first == 0) - { + if (TAILQ_EMPTY(&ifnet)) { error = EADDRNOTAVAIL; break; } |
