Unbreak this file after the last drive-by committing. We have to

#include route.h before iso88025.h, and we have to dereference
the trld_route array correctly. (NOTE: I'm not altogether sure
that this is really the correct way to traverse this array. This
just eliminates the build warning/error. It may not work right at
runtime, and I have no way to test it since I lack the necessary
hardware.)

Broken by: kbyanc, who gets to wear the pointy hat
This commit is contained in:
Bill Paul 2002-05-09 00:37:57 +00:00
parent 76d3dc5297
commit 2ab778e1d3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=96235

View File

@ -64,8 +64,8 @@ static const char rcsid[] =
#include <net/if.h>
#include <net/if_dl.h>
#include <net/if_types.h>
#include <net/iso88025.h>
#include <net/route.h>
#include <net/iso88025.h>
#include <netinet/in.h>
#include <netinet/if_ether.h>
@ -537,7 +537,7 @@ print_entry(struct sockaddr_dl *sdl,
for (seg = 0;
seg < ((TR_RCF_RIFLEN(trld->trld_rcf) - 2 ) / 2);
seg++)
printf(":%x", ntohs(trld->trld_route[seg]));
printf(":%x", ntohs(*(trld->trld_route[seg])));
}
break;
case IFT_FDDI: