diff options
author | Max Kellermann <max@duempel.org> | 2008-09-15 13:27:32 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-15 13:27:32 +0200 |
commit | 9385f83268296e70b4259c3e40dee747f40468a6 (patch) | |
tree | f8a1b69cb4ba7f8951ebc195d26b36d834164c17 /src/conf.c | |
parent | e7981e0e28541e5046c40879a4fdbcc308f143ec (diff) | |
download | mpd-9385f83268296e70b4259c3e40dee747f40468a6.tar.gz mpd-9385f83268296e70b4259c3e40dee747f40468a6.tar.xz mpd-9385f83268296e70b4259c3e40dee747f40468a6.zip |
don't declare local variable "options"
In main.c, the global variable "options" is used all over, except in
main(), which contains a shadowing declaration of it. Remove this
local variable, and use the global "options" instead. Also don't
pollute conf.c's namespace with the global variable with a CPP hack
(to be removed when we have fixed more of ncmpc's namespace
pollution).
Diffstat (limited to '')
-rw-r--r-- | src/conf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/conf.c b/src/conf.c index b49eeb244..970bc0889 100644 --- a/src/conf.c +++ b/src/conf.c @@ -18,6 +18,7 @@ * */ +#define NO_GLOBAL_OPTIONS #include "conf.h" #include "config.h" #include "ncmpc.h" |