From adde197943d80bddb2155167b528acb98b301cfd Mon Sep 17 00:00:00 2001 From: dyoung Date: Wed, 5 Dec 2007 22:51:01 +0000 Subject: Use IFADDR_EMPTY(). --- sys/compat/linux/common/linux_socket.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/compat/linux/common/linux_socket.c') 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 -__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; } -- cgit