X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=attribute.c;h=7c72638fea978eb4da20152cd40f9fbe8b1f229c;hb=ee56b89f3c7d0498a9003b97d4c828ce3a0d7212;hp=2fccac61ef6a1e7f28f9c3f139c6fb788507abd9;hpb=dabdb25fd7fe411933d3639f71a8148b5dc29630;p=paraslash.git diff --git a/attribute.c b/attribute.c index 2fccac61..7c72638f 100644 --- a/attribute.c +++ b/attribute.c @@ -3,6 +3,8 @@ * * Licensed under the GPL v2. For licencing details see COPYING. */ + +/** \file attribute.c Attribute handling functions. */ #include "para.h" #include "error.h" #include "afh.h" @@ -10,7 +12,7 @@ #include "string.h" #include "net.h" -static void *attribute_table; +static struct osl_table *attribute_table; static int greatest_att_bitnum; /** The columns of the attribute table. */ @@ -466,10 +468,9 @@ int attribute_init(struct table_info *ti, const char *db) attribute_table_desc.dir = db; ti->desc = &attribute_table_desc; - ret = osl_open_table(ti->desc, &ti->table); + ret = osl_open_table(ti->desc, &attribute_table); greatest_att_bitnum = -1; /* no atts available */ if (ret >= 0) { - attribute_table = ti->table; find_greatest_att_bitnum(); return ret; }