X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=score.c;h=89a0fbe9cb61fa89ad67e3ecd2d1f5518b5029e3;hp=51ec1e4a69a92e43d5af8274b1b769b3ce8f9181;hb=b2e6a24448a9e49e0766ab4f32163580eeff469e;hpb=09b7971c7a862924d4ce669f8a33bda567ba570b diff --git a/score.c b/score.c index 51ec1e4a..89a0fbe9 100644 --- a/score.c +++ b/score.c @@ -182,7 +182,7 @@ int score_update(const struct osl_row *aft_row, long percent) .size = sizeof(aft_row)}; int ret = osl_get_row(score_table, SCORECOL_AFT_ROW, &obj, &row); - if (ret == -E_RB_KEY_NOT_FOUND) /* not an error */ + if (ret == -E_OSL_RB_KEY_NOT_FOUND) /* not an error */ return 1; if (ret < 0) return ret; @@ -327,7 +327,7 @@ int row_belongs_to_score_table(const struct osl_row *aft_row, unsigned *rank) struct osl_row *score_row; int ret = get_score_row_from_aft_row(aft_row, &score_row); - if (ret == -E_RB_KEY_NOT_FOUND) + if (ret == -E_OSL_RB_KEY_NOT_FOUND) return 0; if (ret < 0) return ret;