]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
mood.c: Change type of rows from "void *" to "struct osl_row *".
authorAndre Noll <maan@systemlinux.org>
Tue, 25 Sep 2007 08:41:01 +0000 (10:41 +0200)
committerAndre Noll <maan@systemlinux.org>
Tue, 25 Sep 2007 08:41:01 +0000 (10:41 +0200)
mood.c

diff --git a/mood.c b/mood.c
index 0d11ea13cdd0fe5f59ff23cf5e989972f5580e28..19f5dc4dbcb4d4eb29803ff9e6bb844165e1095f 100644 (file)
--- a/mood.c
+++ b/mood.c
@@ -237,7 +237,7 @@ static int mm_is_set_score_function(const struct osl_row *row, void *bitnum)
 }
 
 /* returns 1 if row matches score item, -1 otherwise */
-static int add_item_score(const void *row, struct mood_item *item, long *score,
+static int add_item_score(const struct osl_row *row, struct mood_item *item, long *score,
                long *score_arg_sum)
 {
        int ret = 100;
@@ -255,7 +255,7 @@ static int add_item_score(const void *row, struct mood_item *item, long *score,
        return 1;
 }
 
-static int compute_mood_score(const void *row, long *result)
+static int compute_mood_score(const struct osl_row *row, long *result)
 {
        struct mood_item *item;
        int match = 0;
@@ -469,7 +469,7 @@ out:
        return ret;
 }
 
-static int load_mood(const void *row)
+static int load_mood(const struct osl_row *row)
 {
        int ret;
        struct mood *new_mood, *old_mood = current_mood;
@@ -651,7 +651,7 @@ static int del_afs_statistics(const struct osl_row *row)
 struct admissible_file_info
 {
        /** The admissible audio file. */
-       void *aft_row;
+       struct osl_row *aft_row;
        /** Its score. */
        long score;
 };