From 140aeea3009c4eae22195a898821d11eecc45d66 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 19 Aug 2018 22:47:05 +0200 Subject: Main: allocate ConfigData on the stack --- src/CommandLine.hxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/CommandLine.hxx') diff --git a/src/CommandLine.hxx b/src/CommandLine.hxx index 2db067988..1a64aa7ef 100644 --- a/src/CommandLine.hxx +++ b/src/CommandLine.hxx @@ -1,5 +1,5 @@ /* - * Copyright 2003-2017 The Music Player Daemon Project + * Copyright 2003-2018 The Music Player Daemon Project * http://www.musicpd.org * * This program is free software; you can redistribute it and/or modify @@ -20,6 +20,8 @@ #ifndef MPD_COMMAND_LINE_HXX #define MPD_COMMAND_LINE_HXX +struct ConfigData; + struct options { bool kill = false; bool daemon = true; @@ -28,6 +30,7 @@ struct options { }; void -ParseCommandLine(int argc, char **argv, struct options &options); +ParseCommandLine(int argc, char **argv, struct options &options, + ConfigData &config); #endif -- cgit v1.2.3