From: Francis Dupont Date: Tue, 23 Aug 2016 10:27:45 +0000 (+0200) Subject: [4551] Addressed comment (use scoped pointers) X-Git-Tag: trac5004_base~8^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=047a81ce35f334addea4f405babd2d400cd566d0;p=thirdparty%2Fkea.git [4551] Addressed comment (use scoped pointers) --- diff --git a/src/lib/dhcp/iface_mgr.cc b/src/lib/dhcp/iface_mgr.cc index 8afb0d60f1..2e34f30688 100644 --- a/src/lib/dhcp/iface_mgr.cc +++ b/src/lib/dhcp/iface_mgr.cc @@ -880,14 +880,13 @@ IfaceMgr::send(const Pkt4Ptr& pkt) { } -boost::shared_ptr -IfaceMgr::receive4(uint32_t timeout_sec, uint32_t timeout_usec /* = 0 */) { +Pkt4Ptr IfaceMgr::receive4(uint32_t timeout_sec, uint32_t timeout_usec /* = 0 */) { // Sanity check for microsecond timeout. if (timeout_usec >= 1000000) { isc_throw(BadValue, "fractional timeout must be shorter than" " one million microseconds"); } - boost::shared_ptr candidate; + boost::scoped_ptr candidate; IfacePtr iface; fd_set sockets; int maxfd = 0; @@ -997,7 +996,7 @@ Pkt6Ptr IfaceMgr::receive6(uint32_t timeout_sec, uint32_t timeout_usec /* = 0 */ " one million microseconds"); } - boost::shared_ptr candidate; + boost::scoped_ptr candidate; fd_set sockets; int maxfd = 0;