Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
bdb1965b
Commit
bdb1965b
authored
Jul 22, 2009
by
Eugeny N Dzhurinsky
Committed by
Max Kellermann
Jul 22, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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]
parent
c9d43b4d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
cmdline.c
src/cmdline.c
+3
-3
cmdline.h
src/cmdline.h
+1
-1
main.c
src/main.c
+2
-2
No files found.
src/cmdline.c
View file @
bdb1965b
...
...
@@ -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
;
...
...
src/cmdline.h
View file @
bdb1965b
...
...
@@ -25,7 +25,7 @@
struct
options
{
gboolean
kill
;
gboolean
daemon
;
gboolean
stderr
;
gboolean
log_
stderr
;
gboolean
verbose
;
int
create_db
;
};
...
...
src/main.c
View file @
bdb1965b
...
...
@@ -307,7 +307,7 @@ int main(int argc, char *argv[])
stats_global_init
();
tag_lib_init
();
log_init
(
options
.
verbose
,
options
.
stderr
);
log_init
(
options
.
verbose
,
options
.
log_
stderr
);
listen_global_init
();
...
...
@@ -347,7 +347,7 @@ int main(int argc, char *argv[])
daemonize
(
options
.
daemon
);
setup_log_output
(
options
.
stderr
);
setup_log_output
(
options
.
log_
stderr
);
initSigHandlers
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment