svn commit: r193897 - projects/mesh11s/sbin/ifconfig
Rui Paulo
rpaulo at FreeBSD.org
Wed Jun 10 10:51:39 UTC 2009
Author: rpaulo
Date: Wed Jun 10 10:51:38 2009
New Revision: 193897
URL: http://svn.freebsd.org/changeset/base/193897
Log:
Work around the fact that ether_ntoa() uses a static buffer.
Sponsored by: The FreeBSD Foundation
Modified:
projects/mesh11s/sbin/ifconfig/ifieee80211.c
Modified: projects/mesh11s/sbin/ifconfig/ifieee80211.c
==============================================================================
--- projects/mesh11s/sbin/ifconfig/ifieee80211.c Wed Jun 10 10:47:31 2009 (r193896)
+++ projects/mesh11s/sbin/ifconfig/ifieee80211.c Wed Jun 10 10:51:38 2009 (r193897)
@@ -3916,9 +3916,9 @@ list_hwmp(int s)
, "PREQID");
for (i = 0; i < ireq.i_len / sizeof(*routes); i++) {
- printf("%s %s %4u %4d %6d %4d %6d\n",
- ether_ntoa((const struct ether_addr *)
- routes[i].fi_dest),
+ printf("%s ", ether_ntoa((const struct ether_addr *)
+ routes[i].fi_dest));
+ printf("%s %4u %4d %6d %4d %6d\n",
ether_ntoa((const struct ether_addr *)
routes[i].fi_nexthop),
routes[i].fi_nhops, routes[i].fi_metric,
More information about the svn-src-projects
mailing list