summaryrefslogtreecommitdiff
path: root/sys/compat/linux/common/linux_socket.c
diff options
context:
space:
mode:
authordyoung <dyoung@NetBSD.org>2007-12-05 22:51:01 +0000
committerdyoung <dyoung@NetBSD.org>2007-12-05 22:51:01 +0000
commitadde197943d80bddb2155167b528acb98b301cfd (patch)
treedf3d6c27d98ec45fac0a06d43971d9d5deb5b61d /sys/compat/linux/common/linux_socket.c
parent0ecaa37d9b08df4640187c7028c6ce8462149966 (diff)
Use IFADDR_EMPTY().
Diffstat (limited to 'sys/compat/linux/common/linux_socket.c')
-rw-r--r--sys/compat/linux/common/linux_socket.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/compat/linux/common/linux_socket.c b/sys/compat/linux/common/linux_socket.c
index 4e6cf0bcd43..f6ed9704e17 100644
--- a/sys/compat/linux/common/linux_socket.c
+++ b/sys/compat/linux/common/linux_socket.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_socket.c,v 1.82 2007/12/05 01:06:23 dyoung Exp $ */
+/* $NetBSD: linux_socket.c,v 1.83 2007/12/05 22:51:57 dyoung Exp $ */
/*-
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_socket.c,v 1.82 2007/12/05 01:06:23 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_socket.c,v 1.83 2007/12/05 22:51:57 dyoung Exp $");
#if defined(_KERNEL_OPT)
#include "opt_inet.h"
@@ -1067,7 +1067,7 @@ linux_getifhwaddr(struct lwp *l, register_t *retval, u_int fd,
/* not this interface */
continue;
found=1;
- if (TAILQ_EMPTY(&ifp->if_addrlist)) {
+ if (IFADDR_EMPTY(ifp)) {
error = ENODEV;
goto out;
}