From: Andre Noll Date: Tue, 25 Sep 2007 08:53:52 +0000 (+0200) Subject: compute_mood_score(): Rename "row" parameter to "aft_row". X-Git-Tag: v0.3.0~355 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=d22871a6956d0ca4a7afb71b1f85d86ede25e572 compute_mood_score(): Rename "row" parameter to "aft_row". --- diff --git a/mood.c b/mood.c index 8d257e0c..1dc401c9 100644 --- a/mood.c +++ b/mood.c @@ -261,7 +261,7 @@ static int add_item_score(const struct osl_row *row, struct mood_item *item, lon return 1; } -static int compute_mood_score(const struct osl_row *row, long *result) +static int compute_mood_score(const struct osl_row *aft_row, long *result) { struct mood_item *item; int match = 0; @@ -271,16 +271,16 @@ static int compute_mood_score(const struct osl_row *row, long *result) return -E_NO_MOOD; /* reject audio file if it matches any entry in the deny list */ list_for_each_entry(item, ¤t_mood->deny_list, mood_item_node) - if (add_item_score(row, item, &score, &score_arg_sum) > 0) + if (add_item_score(aft_row, item, &score, &score_arg_sum) > 0) return -E_NOT_ADMISSIBLE; list_for_each_entry(item, ¤t_mood->accept_list, mood_item_node) - if (add_item_score(row, item, &score, &score_arg_sum) > 0) + if (add_item_score(aft_row, item, &score, &score_arg_sum) > 0) match = 1; /* reject if there is no matching entry in the accept list */ if (!match && !list_empty(¤t_mood->accept_list)) return -E_NOT_ADMISSIBLE; list_for_each_entry(item, ¤t_mood->score_list, mood_item_node) - add_item_score(row, item, &score, &score_arg_sum); + add_item_score(aft_row, item, &score, &score_arg_sum); if (score_arg_sum) score /= score_arg_sum; *result = score;