]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5589] Fix some little typos as a result of review.
authorMarcin Siodelski <marcin@isc.org>
Tue, 15 May 2018 11:33:44 +0000 (13:33 +0200)
committerMarcin Siodelski <marcin@isc.org>
Tue, 15 May 2018 11:33:44 +0000 (13:33 +0200)
src/hooks/dhcp/stat_cmds/stat_cmds.cc

index 8ab04feb1c7f547afe180221daf477358b49d116..513699a728a2f02171e3f7ccadeca47352f7474f 100644 (file)
@@ -43,11 +43,11 @@ public:
         isc::Exception(file, line, what) { };
 };
 
-///@brief Implements command handlinge for stat-leaseX-get commands
+/// @brief Implements command handling for stat-leaseX-get commands
 class LeaseStatCmdsImpl : private CmdsImpl {
 public:
 
-    /// @brief Wrapper class stat-leaseX-get command parameters.
+    /// @brief Wrapper class for stat-leaseX-get command parameters.
     class Parameters {
     public:
         /// @brief Specifies the subnet-id for a single subnet, or
@@ -68,7 +68,7 @@ public:
     /// @ref isc::stat_cmds::StatCmds::statLease4GetHandler
     ///
     /// It parses the command arguments, and then invokes makeResult4()
-    /// to fulfull the lease6 statistics fetch. It then constructs the outbound
+    /// to fulfull the lease4 statistics fetch. It then constructs the outbound
     /// response based on those results.  If a NotFound exception is caught,
     /// a CONTROL_RESULT_EMTPY response is generated.
     ///
@@ -424,7 +424,7 @@ LeaseStatCmdsImpl::makeResultSet4(const ElementPtr& result_wrapper,
         int64_t assigned = 0;
         int64_t declined = 0;
         bool add_row = false;
-        while (!query_eof && query_row.subnet_id_ == cur_id) {
+        while (!query_eof && (query_row.subnet_id_ == cur_id)) {
             if (query_row.lease_state_ == Lease::STATE_DEFAULT) {
                 add_row = true;
                 assigned = query_row.state_count_;
@@ -533,7 +533,7 @@ LeaseStatCmdsImpl::makeResultSet6(const ElementPtr& result_wrapper,
         int64_t declined = 0;
         int64_t assigned_pds = 0;
         bool add_row = false;
-        while (!query_eof && query_row.subnet_id_ == cur_id) {
+        while (!query_eof && (query_row.subnet_id_ == cur_id)) {
 
             if (query_row.lease_state_ == Lease::STATE_DEFAULT) {
                 add_row = true;