]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - score.c
First draft of the libosl patch series.
[paraslash.git] / score.c
diff --git a/score.c b/score.c
index f2a28b7559bd49308559262fa3d475d041cab88f..89a0fbe9cb61fa89ad67e3ecd2d1f5518b5029e3 100644 (file)
--- a/score.c
+++ b/score.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2007-2008 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2007-2009 Andre Noll <maan@systemlinux.org>
  *
  * Licensed under the GPL v2. For licencing details see COPYING.
  */
@@ -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;