X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=score.c;h=8aa547ef531fe2e8f16a6248d5c3827470fe1ed9;hb=501b83a39828c9d3db5498c7352a2e5b60175bba;hp=894e8ca3deae39f21552a6cd331237551e9c7a1b;hpb=5d72d5880a6bd319a8ce2bf7dd2e4921938c77c2;p=paraslash.git diff --git a/score.c b/score.c index 894e8ca3..8aa547ef 100644 --- a/score.c +++ b/score.c @@ -119,7 +119,7 @@ int score_add(const struct osl_row *aft_row, long score) score_objs[SCORECOL_AFT_ROW].size = size; size = score_table_desc.column_descriptions[SCORECOL_SCORE].data_size; - score_objs[SCORECOL_SCORE].data = para_malloc(size); + score_objs[SCORECOL_SCORE].data = alloc(size); score_objs[SCORECOL_SCORE].size = size; *(long *)(score_objs[SCORECOL_SCORE].data) = score; @@ -176,7 +176,7 @@ int score_update(const struct osl_row *aft_row, long percent) return ret; new_score--; obj.size = sizeof(long); - obj.data = para_malloc(obj.size); + obj.data = alloc(obj.size); *(long *)obj.data = new_score; PARA_DEBUG_LOG("new score: %ld, rank %u/%u\n", new_score, new_pos, n); return osl(osl_update_object(score_table, row, SCORECOL_SCORE, &obj)); @@ -307,7 +307,6 @@ static void score_close(void) static int score_open(__a_unused const char *dir) { - score_table_desc.dir = NULL; /* this table has only volatile columns */ return osl(osl_open_table(&score_table_desc, &score_table)); }