assert(aft_row);
size = score_table_desc.column_descriptions[SCORECOL_AFT_ROW].data_size;
- score_objs[SCORECOL_AFT_ROW].data = aft_row;
+ score_objs[SCORECOL_AFT_ROW].data = (struct osl_row *)aft_row;
score_objs[SCORECOL_AFT_ROW].size = size;
size = score_table_desc.column_descriptions[SCORECOL_SCORE].data_size;
struct osl_row *row;
long new_score;
unsigned n, new_pos;
- struct osl_object obj = {.data = aft_row, .size = sizeof(aft_row)};
+ struct osl_object obj = {.data = (struct osl_row *)aft_row,
+ .size = sizeof(aft_row)};
int ret = osl_get_row(score_table, SCORECOL_AFT_ROW, &obj, &row);
if (ret < 0)
static int get_score_row_from_aft_row(const struct osl_row *aft_row,
struct osl_row **score_row)
{
- struct osl_object obj = {.data = aft_row, .size = sizeof(aft_row)};
+ struct osl_object obj = {.data = (struct osl_row *)aft_row,
+ .size = sizeof(aft_row)};
return osl_get_row(score_table, SCORECOL_AFT_ROW, &obj, score_row);
}