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
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#include "interface.h"
|
||||
#include "path.h"
|
||||
#include "log.h"
|
||||
#include "conf.h"
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <sys/param.h>
|
||||
@@ -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, ... ) {
|
||||
|
Reference in New Issue
Block a user