diff --git a/repos/hello_tutorial/include/hello_session/connection.h b/repos/hello_tutorial/include/hello_session/connection.h index 51b1e31f0a..f08ad1c6f6 100644 --- a/repos/hello_tutorial/include/hello_session/connection.h +++ b/repos/hello_tutorial/include/hello_session/connection.h @@ -22,7 +22,7 @@ namespace Hello { struct Connection; } struct Hello::Connection : Genode::Connection, Session_client { - Connection(Genode::Env &env, unsigned short id) + Connection(Genode::Env &env) : /* create session */ Genode::Connection(env, session(env.parent(), "ram_quota=6K, cap_quota=4")), diff --git a/repos/hello_tutorial/include/hello_session/hello_session.h b/repos/hello_tutorial/include/hello_session/hello_session.h index db22c92084..8ff65e2ea8 100644 --- a/repos/hello_tutorial/include/hello_session/hello_session.h +++ b/repos/hello_tutorial/include/hello_session/hello_session.h @@ -24,8 +24,6 @@ struct Hello::Session : Genode::Session { static const char *service_name() { return "Hello"; } - unsigned short _id; - enum { CAP_QUOTA = 2 }; virtual void say_hello() = 0; diff --git a/repos/hello_tutorial/src/hello/client/main.cc b/repos/hello_tutorial/src/hello/client/main.cc index 2716fc1f36..b494c8a990 100644 --- a/repos/hello_tutorial/src/hello/client/main.cc +++ b/repos/hello_tutorial/src/hello/client/main.cc @@ -60,7 +60,7 @@ struct HelloClient { Genode::log("hello test completed."); } - HelloClient(Genode::Env &env, Hello::Connection &conn) : _env(env), _a(5), _b(2), _hello(conn) + HelloClient(Genode::Env &env, Hello::Connection &conn) : _env(env), _hello(conn), _a(5), _b(2) { _config.sigh(_config_handler); _handle_config(); @@ -71,7 +71,7 @@ void Component::construct(Genode::Env &env) { Timer::Connection timer(env); - Hello::Connection hello(env, (unsigned short)timer.elapsed_ms()); + Hello::Connection hello(env); HelloClient client(env, hello); client.run(); diff --git a/repos/libports/src/test/libc_connect/main.cc b/repos/libports/src/test/libc_connect/main.cc index a3003440d4..5fcbbe9e09 100644 --- a/repos/libports/src/test/libc_connect/main.cc +++ b/repos/libports/src/test/libc_connect/main.cc @@ -107,7 +107,7 @@ static void test_blocking_connect_timeout() int s = socket(AF_INET, SOCK_STREAM, 0); - struct sockaddr_in addr; + struct addr; memset(&addr, 0, sizeof(addr)); addr.sin_family = AF_INET; addr.sin_port = htons(port_timeout);