aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmdline.c
diff options
context:
space:
mode:
authorEugeny N Dzhurinsky <bofh@office.redwerk.com>2009-07-22 13:40:19 +0200
committerMax Kellermann <max@duempel.org>2009-07-22 13:40:19 +0200
commitbdb1965b506ee97e7e8a07253e29c2f4cc3d6bf6 (patch)
tree074d7dc3f9e946fa4587ef72788de6878bc257d1 /src/cmdline.c
parentc9d43b4d713d508b6f5b67cfffba9296f9436934 (diff)
downloadmpd-bdb1965b506ee97e7e8a07253e29c2f4cc3d6bf6.tar.gz
mpd-bdb1965b506ee97e7e8a07253e29c2f4cc3d6bf6.tar.xz
mpd-bdb1965b506ee97e7e8a07253e29c2f4cc3d6bf6.zip
cmdline: renamed options.stderr to options.log_stderr
On FreeBSD, "stderr" is a macro, and using this name for a struct member breaks the build. [mk: renamed _stderr to log_stderr]
Diffstat (limited to '')
-rw-r--r--src/cmdline.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmdline.c b/src/cmdline.c
index cb796ebab..5216568fd 100644
--- a/src/cmdline.c
+++ b/src/cmdline.c
@@ -96,9 +96,9 @@ void parse_cmdline(int argc, char **argv, struct options *options)
"don't create database, even if it doesn't exist", NULL },
{ "no-daemon", 0, 0, G_OPTION_ARG_NONE, &option_no_daemon,
"don't detach from console", NULL },
- { "stdout", 0, 0, G_OPTION_ARG_NONE, &options->stderr,
+ { "stdout", 0, 0, G_OPTION_ARG_NONE, &options->log_stderr,
NULL, NULL },
- { "stderr", 0, 0, G_OPTION_ARG_NONE, &options->stderr,
+ { "stderr", 0, 0, G_OPTION_ARG_NONE, &options->log_stderr,
"print messages to stderr", NULL },
{ "verbose", 'v', 0, G_OPTION_ARG_NONE, &options->verbose,
"verbose logging", NULL },
@@ -109,7 +109,7 @@ void parse_cmdline(int argc, char **argv, struct options *options)
options->kill = false;
options->daemon = true;
- options->stderr = false;
+ options->log_stderr = false;
options->verbose = false;
options->create_db = 0;