From 586a21688f20d5f5f39a304ba21562f94c1b1a56 Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Sun, 6 Mar 2005 19:00:58 +0000 Subject: config file change! now 'port' is optional and 'db_file' is required! also, should have better error reporting when failing to open playlist or music directory's, or writing the db, etc git-svn-id: https://svn.musicpd.org/mpd/trunk@3027 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/conf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/conf.c') diff --git a/src/conf.c b/src/conf.c index 9c08bb3da..2d5bcc5a4 100644 --- a/src/conf.c +++ b/src/conf.c @@ -361,7 +361,7 @@ BlockParam * getBlockParam(ConfigParam * param, char * name) { return ret; } -char * parseConfigFilePath(char * name, int force) { +ConfigParam * parseConfigFilePath(char * name, int force) { ConfigParam * param = getConfigParam(name); char * path; @@ -426,5 +426,5 @@ char * parseConfigFilePath(char * name, int force) { param->value = newPath; } - return param->value; + return param; } -- cgit v1.2.3