Parcourir la source

[2187] Fixed typos.

Marcin Siodelski il y a 12 ans
Parent
commit
237def8395

+ 1 - 1
src/bin/dhcp4/dhcp4_messages.mes

@@ -53,7 +53,7 @@ packet on the specified interface.  Note that a packet marked as UNKNOWN
 may well be a valid DHCP packet, just a type not expected by the server
 (e.g. it will report a received OFFER packet as UNKNOWN).
 
-% DHCPV4_PACKET_SEND_FAIL failed to send DHCPv4 packet: %1
+% DHCP4_PACKET_SEND_FAIL failed to send DHCPv4 packet: %1
 This error is output if IPv6 DHCP server fails to send assembled DHCP
 message to a client. The reason for the error is included in the message.
 

+ 2 - 2
src/bin/dhcp4/dhcp4_srv.cc

@@ -149,8 +149,8 @@ Dhcpv4Srv::run() {
                 if (rsp->pack()) {
                     try {
                         IfaceMgr::instance().send(rsp);
-                    } catch (const std::exception& ex) {
-                        LOG_ERROR(dhcp4_logger, DHCP4_PACKET_SEND_FAIL).arg(ex.what());
+                    } catch (const std::exception& e) {
+                        LOG_ERROR(dhcp4_logger, DHCP4_PACKET_SEND_FAIL).arg(e.what());
                     }
                 } else {
                     LOG_ERROR(dhcp4_logger, DHCP4_PACK_FAIL);

+ 1 - 1
src/bin/dhcp6/dhcp6_messages.mes

@@ -56,7 +56,7 @@ of packet.  Note that a packet marked as UNKNOWN may well be a valid
 DHCP packet, just a type not expected by the server (e.g. it will report
 a received OFFER packet as UNKNOWN).
 
-% DHCPV6_PACKET_SEND_FAIL failed to send DHCPv6 packet: %1
+% DHCP6_PACKET_SEND_FAIL failed to send DHCPv6 packet: %1
 This error is output if IPv6 DHCP server fails to send assembled DHCP
 message to a client. The reason fo the error is included in the message.
 

+ 3 - 3
src/bin/dhcp6/dhcp6_srv.cc

@@ -89,7 +89,7 @@ bool Dhcpv6Srv::run() {
 
         try {
             query = IfaceMgr::instance().receive6(timeout);
-        } catch (const std::exception& ex) {
+        } catch (const std::exception& e) {
             LOG_ERROR(dhcp6_logger, DHCP6_PACKET_RECEIVE_FAIL).arg(e.what());
         }
 
@@ -162,8 +162,8 @@ bool Dhcpv6Srv::run() {
                 if (rsp->pack()) {
                     try {
                         IfaceMgr::instance().send(rsp);
-                    } catch (const std::exception& ex) {
-                        LOG_ERROR(dhcp6_logger, DHCP6_PACKET_SEND_FAIL).arg(ex.what());
+                    } catch (const std::exception& e) {
+                        LOG_ERROR(dhcp6_logger, DHCP6_PACKET_SEND_FAIL).arg(e.what());
                     }
                 } else {
                     LOG_ERROR(dhcp6_logger, DHCP6_PACK_FAIL);