aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-18 16:09:01 +0100
committerMax Kellermann <max@duempel.org>2009-01-18 16:09:01 +0100
commitc2cc3b4923684cb00518e7b8db25a9b56c60dc9d (patch)
tree6f90b4fd00c6a07e90b1f3b555fb9819faebc2de /src/main.c
parent004dfddca383394426f6d191a43c9a0131cdee34 (diff)
downloadmpd-c2cc3b4923684cb00518e7b8db25a9b56c60dc9d.tar.gz
mpd-c2cc3b4923684cb00518e7b8db25a9b56c60dc9d.tar.xz
mpd-c2cc3b4923684cb00518e7b8db25a9b56c60dc9d.zip
database: pass database file name to db_init()
Don't include conf.h in database.c.
Diffstat (limited to '')
-rw-r--r--src/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index ee6efd194..b7e9e0106 100644
--- a/src/main.c
+++ b/src/main.c
@@ -126,7 +126,10 @@ static void changeToUser(void)
static void openDB(Options * options, char *argv0)
{
- db_init();
+ struct config_param *param;
+
+ param = parseConfigFilePath(CONF_DB_FILE, true);
+ db_init(param->value);
if (options->createDB > 0 || !db_load()) {
unsigned job;