From: Tomek Mrugalski Date: Mon, 3 Feb 2014 15:26:07 +0000 (+0100) Subject: [3315] Small cppcheck issue fixed X-Git-Tag: bind10-1.2.0beta1-release~78^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8d6bd774155061530c7c6cd0029332b0d35fe1ce;p=thirdparty%2Fkea.git [3315] Small cppcheck issue fixed --- diff --git a/src/lib/dhcp/iface_mgr.h b/src/lib/dhcp/iface_mgr.h index aa4e12af46..268cc9f709 100644 --- a/src/lib/dhcp/iface_mgr.h +++ b/src/lib/dhcp/iface_mgr.h @@ -1026,7 +1026,7 @@ private: /// error occurs during opening a socket, or NULL if exception should /// be thrown upon error. bool openMulticastSocket(Iface& iface, - const isc::asiolink::IOAddress addr, + const isc::asiolink::IOAddress& addr, const uint16_t port, IfaceMgrErrorMsgCallback error_handler = NULL); diff --git a/src/lib/dhcp/iface_mgr_bsd.cc b/src/lib/dhcp/iface_mgr_bsd.cc index cf6c3e2772..7a01228256 100644 --- a/src/lib/dhcp/iface_mgr_bsd.cc +++ b/src/lib/dhcp/iface_mgr_bsd.cc @@ -152,7 +152,7 @@ IfaceMgr::setMatchingPacketFilter(const bool /* direct_response_desired */) { bool IfaceMgr::openMulticastSocket(Iface& iface, - const isc::asiolink::IOAddress addr, + const isc::asiolink::IOAddress& addr, const uint16_t port, IfaceMgrErrorMsgCallback error_handler) { try { diff --git a/src/lib/dhcp/iface_mgr_linux.cc b/src/lib/dhcp/iface_mgr_linux.cc index eaa625eb7d..f4b0613dd8 100644 --- a/src/lib/dhcp/iface_mgr_linux.cc +++ b/src/lib/dhcp/iface_mgr_linux.cc @@ -536,7 +536,7 @@ bool IfaceMgr::os_receive4(struct msghdr&, Pkt4Ptr&) { bool IfaceMgr::openMulticastSocket(Iface& iface, - const isc::asiolink::IOAddress addr, + const isc::asiolink::IOAddress& addr, const uint16_t port, IfaceMgrErrorMsgCallback error_handler) { // This variable will hold a descriptor of the socket bound to diff --git a/src/lib/dhcp/iface_mgr_sun.cc b/src/lib/dhcp/iface_mgr_sun.cc index 0a9f9b4f9d..a78de8f4a5 100644 --- a/src/lib/dhcp/iface_mgr_sun.cc +++ b/src/lib/dhcp/iface_mgr_sun.cc @@ -156,7 +156,7 @@ IfaceMgr::setMatchingPacketFilter(const bool /* direct_response_desired */) { bool IfaceMgr::openMulticastSocket(Iface& iface, - const isc::asiolink::IOAddress addr, + const isc::asiolink::IOAddress& addr, const uint16_t port, IfaceMgrErrorMsgCallback error_handler) { try {