]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - attribute.c
Fix table init.
[paraslash.git] / attribute.c
index 798a6cc4889fe02c7789fe10b282891fa76bee1f..801d907ab714b254dae7415d21ccc6c675484835 100644 (file)
@@ -10,7 +10,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,7 +466,7 @@ 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, attribute_table);
+       ret = osl_open_table(ti->desc, &attribute_table);
        greatest_att_bitnum = -1; /* no atts available */
        if (ret >= 0) {
                find_greatest_att_bitnum();