X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=attribute.c;h=7c72638fea978eb4da20152cd40f9fbe8b1f229c;hp=5ee0789d0bca2c8b39852e187ecb54d7fd5f31a2;hb=1a4b98e797ab5ebb1ee1daa707aa0d520379ccc9;hpb=b1bc341190a5d736dadb279bdac83c50be0cbbde diff --git a/attribute.c b/attribute.c index 5ee0789d..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. */ @@ -320,7 +322,7 @@ static int com_addatt_callback(const struct osl_object *query, if (ret < 0) return ret; find_greatest_att_bitnum(); - return mood_reload(); /* FIXME: mood_reload() returns an error */ + return reload_current_mood(); /* FIXME: mood_reload() returns an error */ } int com_addatt(__a_unused int fd, int argc, char * const * const argv) @@ -355,7 +357,7 @@ static int com_rmatt_callback(const struct osl_object *query, find_greatest_att_bitnum(); if (!atts_removed) return 1; - return mood_reload(); /* FIXME: Fix mood_reload() */ + return reload_current_mood(); } int com_rmatt(__a_unused int fd, int argc, char * const * const argv) @@ -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; }