mirror of
https://github.com/genodelabs/genode.git
synced 2025-05-29 05:34:23 +00:00
nic_router: get rid of the term "legacy"
The term was used for the old configuration during the handling of a new configuration but in other places it was already called old_config. Issue #2840
This commit is contained in:
parent
ff7bc0ac6c
commit
d4f08b5a71
@ -50,7 +50,7 @@ Configuration::Configuration(Env &env,
|
||||
Xml_node const node,
|
||||
Allocator &alloc,
|
||||
Timer::Connection &timer,
|
||||
Configuration &legacy)
|
||||
Configuration &old_config)
|
||||
:
|
||||
_alloc(alloc),
|
||||
_verbose (node.attribute_value("verbose", false)),
|
||||
@ -116,8 +116,8 @@ Configuration::Configuration(Env &env,
|
||||
Xml_node const report_node = node.sub_node("report");
|
||||
try {
|
||||
/* try to re-use existing reporter */
|
||||
_reporter = legacy._reporter();
|
||||
legacy._reporter = Pointer<Reporter>();
|
||||
_reporter = old_config._reporter();
|
||||
old_config._reporter = Pointer<Reporter>();
|
||||
}
|
||||
catch (Pointer<Reporter>::Invalid) {
|
||||
|
||||
|
@ -69,7 +69,7 @@ class Net::Configuration
|
||||
Genode::Xml_node const node,
|
||||
Genode::Allocator &alloc,
|
||||
Timer::Connection &timer,
|
||||
Configuration &legacy);
|
||||
Configuration &old_config);
|
||||
|
||||
~Configuration();
|
||||
|
||||
|
@ -75,13 +75,13 @@ class Net::Main
|
||||
|
||||
Configuration &Net::Main::_init_config()
|
||||
{
|
||||
Configuration &config_legacy = *new (_heap)
|
||||
Configuration &dummy_config = *new (_heap)
|
||||
Configuration(_config_rom.xml(), _heap);
|
||||
|
||||
Configuration &config = *new (_heap)
|
||||
Configuration(_env, _config_rom.xml(), _heap, _timer, config_legacy);
|
||||
Configuration(_env, _config_rom.xml(), _heap, _timer, dummy_config);
|
||||
|
||||
destroy(_heap, &config_legacy);
|
||||
destroy(_heap, &dummy_config);
|
||||
return config;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user