From 38708c9973f925dcf971f10af029ac8f6102c522 Mon Sep 17 00:00:00 2001 From: Guilherme Maciel Ferreira Date: Tue, 3 Jan 2012 07:52:26 -0200 Subject: [PATCH] PC-Lint warnings fixed: - Warning 568: non-negative quantity is never less than zero. --- src/host/pingerfactory.cpp | 2 +- src/host/pingscheduler.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/host/pingerfactory.cpp b/src/host/pingerfactory.cpp index 100f57e..943338f 100644 --- a/src/host/pingerfactory.cpp +++ b/src/host/pingerfactory.cpp @@ -70,7 +70,7 @@ shared_ptr PingerFactory::createPinger( const string &network_interface ) { - BOOST_ASSERT( ( PingProtocol_First <= protocol ) && ( protocol <= PingProtocol_Last ) ); + BOOST_ASSERT( /*( PingProtocol_First <= protocol ) && */( protocol <= PingProtocol_Last ) ); BOOST_ASSERT( !network_interface.empty() ); // Ping reply timeout. Could be made a configuration variable diff --git a/src/host/pingscheduler.cpp b/src/host/pingscheduler.cpp index 0182f08..e5045c0 100644 --- a/src/host/pingscheduler.cpp +++ b/src/host/pingscheduler.cpp @@ -70,7 +70,7 @@ PingScheduler::PingScheduler( BOOST_ASSERT( !network_interface.empty() ); BOOST_ASSERT( !destination_address.empty() ); BOOST_ASSERT( 0 < destination_port ); - BOOST_ASSERT( (PingProtocol_First <= ping_protocol) && (ping_protocol <= PingProtocol_Last) ); + BOOST_ASSERT( /*(PingProtocol_First <= ping_protocol) && */(ping_protocol <= PingProtocol_Last) ); BOOST_ASSERT( 0 < ping_interval_in_sec ); BOOST_ASSERT( (0 <= ping_fail_percentage_limit) && (ping_fail_percentage_limit <= 100) ); BOOST_ASSERT( !nameserver.empty() ); -- 1.7.1