handlers: pass config to handlers' init()
The handlers may want to consume config parameters, so pass the struct
config to their init call.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
diff --git a/socket-handler.c b/socket-handler.c
index d7ef00c..6827978 100644
--- a/socket-handler.c
+++ b/socket-handler.c
@@ -108,7 +108,8 @@
}
-static int socket_init(struct handler *handler, struct console *console)
+static int socket_init(struct handler *handler, struct console *console,
+ struct config *config __attribute__((unused)))
{
struct socket_handler *sh = to_socket_handler(handler);
struct sockaddr_un addr;