From 91b9756f6b3968a27e63d8a874869f9578b5bc91 Mon Sep 17 00:00:00 2001 From: wpaul Date: Thu, 9 May 2002 00:37:57 +0000 Subject: 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 --- usr.sbin/arp/arp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/arp/arp.c') diff --git a/usr.sbin/arp/arp.c b/usr.sbin/arp/arp.c index 791ed5b..e6342ed 100644 --- a/usr.sbin/arp/arp.c +++ b/usr.sbin/arp/arp.c @@ -64,8 +64,8 @@ static const char rcsid[] = #include #include #include -#include #include +#include #include #include @@ -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: -- cgit v1.1