Parcourir la source

[3437] Removed unused variable.

Marcin Siodelski il y a 11 ans
Parent
commit
a7fe03d864
1 fichiers modifiés avec 1 ajouts et 3 suppressions
  1. 1 3
      src/lib/dhcp/iface_mgr_linux.cc

+ 1 - 3
src/lib/dhcp/iface_mgr_linux.cc

@@ -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,