Initial changes for db

This commit is contained in:
Ron Pedde 2004-02-18 20:35:14 +00:00
parent 6f4df7885b
commit 62ea6d2fa8
2 changed files with 5 additions and 1 deletions

View File

@ -24,6 +24,10 @@ take effect.
<TD>MP3 Dir</TD>
<TD><INPUT TYPE="TEXT" @READONLY@ NAME="MP3_DIR" SIZE="80" VALUE="@MP3_DIR@"></TD>
</TR>
<TR>
<TD>Database Dir</TD>
<TD><INPUT TYPE="TEXT" @READONLY@ NAME="DB_DIR" SIZE="80" VALUE="@DB_DIR@"></TD>
</TR>
<TR>
<TD>Port</TD>
<TD><INPUT TYPE="TEXT" @READONLY@ NAME="PORT" VALUE="@PORT@"></TD>

View File

@ -473,7 +473,7 @@ int main(int argc, char *argv[]) {
DPRINTF(ERR_DEBUG,"Initializing database\n");
/* Initialize the database before starting */
if(db_init("none")) {
if(db_init(config.dbdir)) {
perror("db_init");
exit(EXIT_FAILURE);
}