summaryrefslogtreecommitdiffstats
path: root/sys/netinet/raw_ip.c
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2006-03-05 21:48:54 +0000
committermiod <miod@openbsd.org>2006-03-05 21:48:54 +0000
commit1573508e4a2b79545b4e249a73d6b17aac49719c (patch)
tree71ace380f161b052a5a1ed8e427236a217c5ad15 /sys/netinet/raw_ip.c
parentSprinkle some tabs and a little cleaning. (diff)
downloadwireguard-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/netinet/raw_ip.c')
-rw-r--r--sys/netinet/raw_ip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/raw_ip.c b/sys/netinet/raw_ip.c
index 5791bc7f7ec..a14519aa345 100644
--- a/sys/netinet/raw_ip.c
+++ b/sys/netinet/raw_ip.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: raw_ip.c,v 1.37 2005/05/27 04:55:28 mcbride Exp $ */
+/* $OpenBSD: raw_ip.c,v 1.38 2006/03/05 21:48:57 miod Exp $ */
/* $NetBSD: raw_ip.c,v 1.25 1996/02/18 18:58:33 christos Exp $ */
/*
@@ -387,7 +387,7 @@ rip_usrreq(so, req, m, nam, control)
error = EINVAL;
break;
}
- if ((ifnet.tqh_first == 0) ||
+ if ((TAILQ_EMPTY(&ifnet)) ||
((addr->sin_family != AF_INET) &&
(addr->sin_family != AF_IMPLINK)) ||
(addr->sin_addr.s_addr &&
@@ -406,7 +406,7 @@ rip_usrreq(so, req, m, nam, control)
error = EINVAL;
break;
}
- if (ifnet.tqh_first == 0) {
+ if (TAILQ_EMPTY(&ifnet)) {
error = EADDRNOTAVAIL;
break;
}