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/myfprintf.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/myfprintf.c') diff --git a/src/myfprintf.c b/src/myfprintf.c index 8cd394c26..a959b6609 100644 --- a/src/myfprintf.c +++ b/src/myfprintf.c @@ -20,6 +20,7 @@ #include "interface.h" #include "path.h" #include "log.h" +#include "conf.h" #include #include @@ -57,14 +58,12 @@ void blockingWrite(int fd, char * string, int len) { } } -void myfprintfStdLogMode(FILE * out, FILE * err, char * outFilename, - char * errFilename) -{ +void myfprintfStdLogMode(FILE * out, FILE * err) { myfprintf_stdLogMode = 1; myfprintf_out = out; myfprintf_err = err; - myfprintf_outFilename = prependCwdToPathDup(outFilename); - myfprintf_errFilename = prependCwdToPathDup(errFilename); + myfprintf_outFilename = getConfigParamValue(CONF_LOG_FILE); + myfprintf_errFilename = getConfigParamValue(CONF_ERROR_FILE); } void myfprintf(FILE * fp, char * format, ... ) { -- cgit v1.2.3