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:
Martin Stein 2018-06-05 12:51:57 +02:00 committed by Norman Feske
parent ff7bc0ac6c
commit d4f08b5a71
3 changed files with 7 additions and 7 deletions

View File

@ -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) {

View File

@ -69,7 +69,7 @@ class Net::Configuration
Genode::Xml_node const node,
Genode::Allocator &alloc,
Timer::Connection &timer,
Configuration &legacy);
Configuration &old_config);
~Configuration();

View File

@ -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;
}