From: Andre Noll Date: Tue, 25 Sep 2007 08:41:01 +0000 (+0200) Subject: mood.c: Change type of rows from "void *" to "struct osl_row *". X-Git-Tag: v0.3.0~358 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=c70de60d6789d48468966f978b3193df8d61533a;hp=4a14f0f3692f766bf3c6a2df01a6f1e225202ac7 mood.c: Change type of rows from "void *" to "struct osl_row *". --- diff --git a/mood.c b/mood.c index 0d11ea13..19f5dc4d 100644 --- 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; };