From a67a74a345a4c5f74c981a3ea532e277c959b76d Mon Sep 17 00:00:00 2001 From: Pavel Boyko Date: Mon, 13 Apr 2009 09:12:18 +0400 Subject: [PATCH] =?UTF-8?q?build=20fix:=20cc1plus:=20warnings=20being=20tr?= =?UTF-8?q?eated=20as=20errors=20../src/devices/mesh/dot11s/hwmp-protocol.?= =?UTF-8?q?cc:=20In=20member=20function=20=E2=80=98void=20ns3::dot11s::Hwm?= =?UTF-8?q?pProtocol::ReceivePrep(ns3::dot11s::IePrep,=20ns3::Mac48Address?= =?UTF-8?q?,=20uint32=5Ft,=20uint32=5Ft)=E2=80=99:=20../src/devices/mesh/d?= =?UTF-8?q?ot11s/hwmp-protocol.cc:443:=20error:=20suggest=20parentheses=20?= =?UTF-8?q?around=20&&=20within=20||=20Build=20failed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/devices/mesh/dot11s/hwmp-protocol.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/mesh/dot11s/hwmp-protocol.cc b/src/devices/mesh/dot11s/hwmp-protocol.cc index d1d6ca4d2..a2ba0466b 100644 --- a/src/devices/mesh/dot11s/hwmp-protocol.cc +++ b/src/devices/mesh/dot11s/hwmp-protocol.cc @@ -440,7 +440,7 @@ HwmpProtocol::ReceivePrep (IePrep prep, Mac48Address from, uint32_t interface, u //Add a reactive path only if it is better than existing: if ( (result.retransmitter == Mac48Address::GetBroadcast ()) || - (result.retransmitter != Mac48Address::GetBroadcast ()) && (result.metric > prep.GetMetric ()) + (result.metric > prep.GetMetric ()) ) { m_rtable->AddPrecursor (prep.GetDestinationAddress (), interface, from);