mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-07 19:34:56 +00:00
nic_flood: Drop Dhcp_client::_alloc member.
This private member variable is not used anywhere in the code. This breaks builds using clang instead of GCC. Drop it. Issue #3984
This commit is contained in:
parent
e6a9e06f62
commit
30429a5228
@ -51,12 +51,10 @@ void append_param_req_list(Dhcp_options &dhcp_opts)
|
||||
** Dhcp_client **
|
||||
*****************/
|
||||
|
||||
Dhcp_client::Dhcp_client(Genode::Allocator &alloc,
|
||||
Timer::Connection &timer,
|
||||
Dhcp_client::Dhcp_client(Timer::Connection &timer,
|
||||
Nic &nic,
|
||||
Dhcp_client_handler &handler)
|
||||
:
|
||||
_alloc (alloc),
|
||||
_timeout (timer, *this, &Dhcp_client::_handle_timeout),
|
||||
_nic (nic),
|
||||
_handler (handler)
|
||||
|
@ -64,7 +64,6 @@ class Net::Dhcp_client
|
||||
enum { DISCOVER_TIMEOUT_SEC = 2 };
|
||||
enum { REQUEST_TIMEOUT_SEC = 2 };
|
||||
|
||||
Genode::Allocator &_alloc;
|
||||
State _state { State::INIT };
|
||||
Timer::One_shot_timeout<Dhcp_client> _timeout;
|
||||
unsigned long _lease_time_sec = 0;
|
||||
@ -92,8 +91,7 @@ class Net::Dhcp_client
|
||||
|
||||
public:
|
||||
|
||||
Dhcp_client(Genode::Allocator &alloc,
|
||||
Timer::Connection &timer,
|
||||
Dhcp_client(Timer::Connection &timer,
|
||||
Nic &nic,
|
||||
Dhcp_client_handler &handler);
|
||||
|
||||
|
@ -125,7 +125,7 @@ Main::Main(Env &env) : _env(env)
|
||||
|
||||
/* else, start the DHCP client for requesting an IP config */
|
||||
else {
|
||||
_dhcp_client.construct(_heap, _timer, _nic, *this); }
|
||||
_dhcp_client.construct(_timer, _nic, *this); }
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user