Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jun 2009 10:51:38 +0000 (UTC)
From:      Rui Paulo <rpaulo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r193897 - projects/mesh11s/sbin/ifconfig
Message-ID:  <200906101051.n5AApckR010701@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906101051.n5AApckR010701>