CommandLine: use C++11 initializers

This commit is contained in:
Max Kellermann 2018-01-17 10:57:06 +01:00
parent 735a371249
commit ec54a5c72c
2 changed files with 4 additions and 8 deletions

View File

@ -306,10 +306,6 @@ void
ParseCommandLine(int argc, char **argv, struct options *options)
{
bool use_config_file = true;
options->kill = false;
options->daemon = true;
options->log_stderr = false;
options->verbose = false;
// First pass: handle command line options
OptionParser parser(option_defs, argc, argv);

View File

@ -21,10 +21,10 @@
#define MPD_COMMAND_LINE_HXX
struct options {
bool kill;
bool daemon;
bool log_stderr;
bool verbose;
bool kill = false;
bool daemon = true;
bool log_stderr = false;
bool verbose = false;
};
void