X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=score.c;h=54af56f7c60100ad65ac09cafb52e7769514c958;hb=be5daec66f163725489f42d512659a8af5c3fd59;hp=894e8ca3deae39f21552a6cd331237551e9c7a1b;hpb=a79e210f33334b273d11c92a430dd477284ee95a;p=paraslash.git diff --git a/score.c b/score.c index 894e8ca3..54af56f7 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));