From 5c19b67791e6f0714a0981a59f12782d227b75d0 Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Sun, 5 Aug 2007 14:34:23 +0200 Subject: [PATCH] fix optimized build --- src/routing/global-routing/global-router-interface.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/routing/global-routing/global-router-interface.cc b/src/routing/global-routing/global-router-interface.cc index 24a84be06..e70d2ec04 100644 --- a/src/routing/global-routing/global-router-interface.cc +++ b/src/routing/global-routing/global-router-interface.cc @@ -535,8 +535,7 @@ GlobalRouter::GetLSA (uint32_t n, GlobalRouterLSA &lsa) const GlobalRouter::GetAdjacent(Ptr nd, Ptr ch) const { - uint32_t nDevices = ch->GetNDevices(); - NS_ASSERT_MSG(nDevices == 2, + NS_ASSERT_MSG(ch->GetNDevices() == 2, "GlobalRouter::GetAdjacent (): Channel with other than two devices"); // // This is a point to point channel with two endpoints. Get both of them.