]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3437] Removed unused variable.
authorMarcin Siodelski <marcin@isc.org>
Mon, 16 Jun 2014 10:30:30 +0000 (12:30 +0200)
committerMarcin Siodelski <marcin@isc.org>
Mon, 16 Jun 2014 10:30:30 +0000 (12:30 +0200)
src/lib/dhcp/iface_mgr_linux.cc

index d258b239c6e5fbaec111a1926d0e20477c35ffa7..15f64fac1d92d811d3628feef3c46b71419f73f5 100644 (file)
@@ -543,10 +543,8 @@ IfaceMgr::openMulticastSocket(Iface& iface,
     // link-local address. It may be required for us to close this
     // socket if an attempt to open and bind a socket to multicast
     // address fails.
-    int sock;
     try {
-        sock = openSocket(iface.getName(), addr, port,
-                          iface.flag_multicast_);
+        openSocket(iface.getName(), addr, port, iface.flag_multicast_);
 
     } catch (const Exception& ex) {
         IFACEMGR_ERROR(SocketConfigError, error_handler,