]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3315] Small cppcheck issue fixed
authorTomek Mrugalski <tomasz@isc.org>
Mon, 3 Feb 2014 15:26:07 +0000 (16:26 +0100)
committerTomek Mrugalski <tomasz@isc.org>
Mon, 3 Feb 2014 15:26:07 +0000 (16:26 +0100)
src/lib/dhcp/iface_mgr.h
src/lib/dhcp/iface_mgr_bsd.cc
src/lib/dhcp/iface_mgr_linux.cc
src/lib/dhcp/iface_mgr_sun.cc

index aa4e12af46c4ac7ff6e3c2472a92eed84ae2d14b..268cc9f7090a11bc905435fb681c0cf8a66209f4 100644 (file)
@@ -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);
 
index cf6c3e27726e3ccbcc8d94f4804396c74444a863..7a012282560a3ff2ca2e88075a31c1da7b28b9a1 100644 (file)
@@ -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 {
index eaa625eb7de3422cfde65c034411bca8c05b5ea8..f4b0613dd8ab1675caf0d4090686977d556f3a20 100644 (file)
@@ -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
index 0a9f9b4f9d2cae920982b22b47eb6313d8f95738..a78de8f4a56421a79d4cabd8247f3fc1f45ad171 100644 (file)
@@ -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 {