Changed type for attributes _a and _b.

This commit is contained in:
Michael Müller
2022-07-11 12:19:35 +02:00
parent 5d6d54c066
commit baa130db17

View File

@@ -21,8 +21,8 @@ struct HelloClient {
Genode::Env &_env;
Hello::Connection &_hello;
int _a;
int _b;
unsigned short _a;
unsigned short _b;
Genode::Attached_rom_dataspace _config{_env, "config"};
@@ -37,8 +37,8 @@ struct HelloClient {
return;
}
_a = _config.xml().attribute_value("a", (int)2);
_b = _config.xml().attribute_value("b", (int)5);
_a = _config.xml().attribute_value("a", (unsigned short)2);
_b = _config.xml().attribute_value("b", (unsigned short)5);
}
Genode::Signal_handler<HelloClient> _config_handler {