diff options
author | wpaul <wpaul@FreeBSD.org> | 2002-05-09 00:37:57 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 2002-05-09 00:37:57 +0000 |
commit | 91b9756f6b3968a27e63d8a874869f9578b5bc91 (patch) | |
tree | a6578b5dbe7a99ce1f9efbf7d0570f6ea5feaf2c /usr.sbin/arp/arp.c | |
parent | c5c443997d7671773163be988f02f5fe67004f14 (diff) | |
download | FreeBSD-src-91b9756f6b3968a27e63d8a874869f9578b5bc91.zip FreeBSD-src-91b9756f6b3968a27e63d8a874869f9578b5bc91.tar.gz |
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
Diffstat (limited to 'usr.sbin/arp/arp.c')
-rw-r--r-- | usr.sbin/arp/arp.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <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: |