#include "list.h"
#include "string.h"
-int mood_compute_score(const void *row, long *score);
-
-static void *score_table;
+static struct osl_table *score_table;
static int ptr_compare(const struct osl_object *obj1, const struct osl_object *obj2)
{
score_table_desc.dir = db;
ti->desc = &score_table_desc;
ti->flags = TBLFLAG_SKIP_CREATE;
- int ret = osl_open_table(ti->desc, &ti->table);
-
- score_table = ti->table;
- return ret;
+ return osl_open_table(ti->desc, &score_table);
}