Oops, typo (evil copy-paste)
authorGustavo J. A. M. Carneiro <gjc@inescporto.pt>
Wed, 06 Aug 2008 16:11:44 +0100
changeset 3514 308a7d84b18f
parent 3513 fe3945d67a88
child 3515 88e9cee20461
Oops, typo (evil copy-paste)
src/node/node.cc
--- a/src/node/node.cc	Wed Aug 06 16:06:44 2008 +0100
+++ b/src/node/node.cc	Wed Aug 06 16:11:44 2008 +0100
@@ -106,7 +106,7 @@
 Ptr<NetDevice>
 Node::GetDevice (uint32_t index) const
 {
-  NS_ASSERT_MSG (n < m_devices.size (), "Device index " << n <<
+  NS_ASSERT_MSG (index < m_devices.size (), "Device index " << index <<
                  " is out of range (only have " << m_devices.size () << " devices).");
   return m_devices[index];
 }
@@ -127,7 +127,7 @@
 Ptr<Application> 
 Node::GetApplication (uint32_t index) const
 {
-  NS_ASSERT_MSG (n < m_applications.size (), "Application index " << n <<
+  NS_ASSERT_MSG (index < m_applications.size (), "Application index " << index <<
                  " is out of range (only have " << m_applications.size () << " applications).");
   return m_applications[index];
 }