From 23d4a2d6a53d38fe6cef9eb06b95360a4b9c166c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 5 Nov 2021 08:55:43 +0100 Subject: [PATCH] Main: pass struct options by reference --- src/Main.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Main.cxx b/src/Main.cxx index f9c12f552..61bbf1f8b 100644 --- a/src/Main.cxx +++ b/src/Main.cxx @@ -142,14 +142,14 @@ struct Config { #ifdef ENABLE_DAEMON static void -glue_daemonize_init(const struct options *options, +glue_daemonize_init(const struct options &options, const ConfigData &config) { daemonize_init(config.GetString(ConfigOption::USER), config.GetString(ConfigOption::GROUP), config.GetPath(ConfigOption::PID_FILE)); - if (options->kill) + if (options.kill) daemonize_kill(); } @@ -384,7 +384,7 @@ MainConfigured(const struct options &options, const ConfigData &raw_config) const Config config(raw_config); #ifdef ENABLE_DAEMON - glue_daemonize_init(&options, raw_config); + glue_daemonize_init(options, raw_config); #endif TagLoadConfig(raw_config);