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/console-server.c b/console-server.c
index 40e3a36..183d0ae 100644
--- a/console-server.c
+++ b/console-server.c
@@ -219,7 +219,7 @@
 	return write_buf_to_fd(console->tty_fd, data, len);
 }
 
-static void handlers_init(struct console *console)
+static void handlers_init(struct console *console, struct config *config)
 {
 	extern struct handler *__start_handlers, *__stop_handlers;
 	struct handler *handler;
@@ -237,7 +237,7 @@
 		printf("  %s\n", handler->name);
 
 		if (handler->init)
-			handler->init(handler, console);
+			handler->init(handler, console, config);
 	}
 }
 
@@ -502,7 +502,7 @@
 	if (rc)
 		goto out_config_fini;
 
-	handlers_init(console);
+	handlers_init(console, config);
 
 	rc = run_console(console);