X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=attribute.c;h=af3dfb063be01ea0a8ec8c63cde0457d0dd5a600;hp=925795be2902e8aad7f45b1a3f67673397248186;hb=d330cf697501c14bb696256cb27c9e69b9edf3f4;hpb=2cfb78331c33cb74c6abf357e8221604c3c9ec47 diff --git a/attribute.c b/attribute.c index 925795be..af3dfb06 100644 --- a/attribute.c +++ b/attribute.c @@ -37,8 +37,7 @@ static struct osl_column_description att_cols[] = { } }; -static const struct osl_table_description attribute_table_desc = { - .dir = DATABASE_DIR, +static struct osl_table_description attribute_table_desc = { .name = "attributes", .num_columns = NUM_ATT_COLUMNS, .flags = 0, @@ -380,10 +379,11 @@ void attribute_shutdown(enum osl_close_flags flags) osl_close_table(attribute_table, flags); } -int attribute_init(struct table_info *ti) +int attribute_init(struct table_info *ti, const char *db) { int ret; + attribute_table_desc.dir = db; ti->desc = &attribute_table_desc; ret = osl_open_table(ti->desc, &ti->table); greatest_att_bitnum = -1; /* no atts available */