X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=score.c;h=86c6c4bb366af7e1e9f6d2ddec3d820b45f74a51;hp=6c15a0f571e8cd79647493910f64edc7679c947c;hb=d330cf697501c14bb696256cb27c9e69b9edf3f4;hpb=cb6d1dfb9e4067229a4bbde0abd05784d97ef14b diff --git a/score.c b/score.c index 6c15a0f5..86c6c4bb 100644 --- a/score.c +++ b/score.c @@ -78,7 +78,6 @@ static struct osl_column_description score_cols[] = { }; static struct osl_table_description score_table_desc = { - .dir = DATABASE_DIR, .name = "score", .num_columns = NUM_SCORE_COLUMNS, .flags = 0, @@ -349,13 +348,15 @@ void score_shutdown(enum osl_close_flags flags) * Init the scoring subsystem. * * \param ti Gets filled in by the function. + * \param db The database directory. * * \return The return value of the underlying call to osl_open_table(). * * \sa score_shutdown(). */ -int score_init(struct table_info *ti) +int score_init(struct table_info *ti, const char *db) { + score_table_desc.dir = db; ti->desc = &score_table_desc; ti->flags = TBLFLAG_SKIP_CREATE; int ret = osl_open_table(ti->desc, &ti->table);