From 6fa924cb38a6aa0080a261d6e916ce45f80dab99 Mon Sep 17 00:00:00 2001 From: cgd Date: Wed, 12 Jul 1995 08:27:26 +0000 Subject: [PATCH] fix struct member use, as explained in pr 1164. style police beat the fix into submission. --- sys/net/if_arcsubr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/net/if_arcsubr.c b/sys/net/if_arcsubr.c index 7cc8feda20bb..d4130d69395c 100644 --- a/sys/net/if_arcsubr.c +++ b/sys/net/if_arcsubr.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_arcsubr.c,v 1.4 1995/06/07 00:13:52 cgd Exp $ */ +/* $NetBSD: if_arcsubr.c,v 1.5 1995/07/12 08:27:26 cgd Exp $ */ /* * Copyright (c) 1994, 1995 Ignatios Souvatzis @@ -598,7 +598,8 @@ arc_ifattach(ifp) log(LOG_ERR,"%s%d: link address 0 reserved for broadcasts. Please change it and ifconfig %s%d down up\n", ifp->if_name,ifp->if_unit,ifp->if_name,ifp->if_unit); } - for (ifa = ifp->if_addrlist; ifa; ifa = ifa->ifa_next) + for (ifa = ifp->if_addrlist.tqh_first; ifa != 0; + ifa = ifa->ifa_list.tqe_next) if ((sdl = (struct sockaddr_dl *)ifa->ifa_addr) && sdl->sdl_family == AF_LINK) { sdl->sdl_type = IFT_ARCNET;