X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=score.c;h=1826a9575e4fa2f292d9011e0f19b31d7d499ec5;hp=f782391650ae0674340e91924efa04f65f1055a0;hb=07ccefd6c97ddd433d8432f7b4596a5572e09b48;hpb=1ee89902de184a640c171ae3285bff6882a791bd diff --git a/score.c b/score.c index f782391..1826a95 100644 --- a/score.c +++ b/score.c @@ -11,6 +11,7 @@ #include "mutt.h" #include "sort.h" +#include "pattern.h" typedef struct score_t { char *str; @@ -46,7 +47,8 @@ void mutt_check_rescore (CONTEXT * ctx) unset_option (OPTNEEDRESCORE); } -int mutt_parse_score (BUFFER * buf, BUFFER * s, unsigned long data, +int mutt_parse_score (BUFFER * buf, BUFFER * s, + unsigned long data __attribute__ ((unused)), BUFFER * err) { SCORE *ptr, *last; @@ -120,8 +122,9 @@ void mutt_score_message (CONTEXT * ctx, HEADER * hdr, int upd_ctx) _mutt_set_flag (ctx, hdr, M_FLAG, 1, upd_ctx); } -int mutt_parse_unscore (BUFFER * buf, BUFFER * s, unsigned long data, - BUFFER * err) +int mutt_parse_unscore (BUFFER * buf, BUFFER * s, + unsigned long data __attribute__ ((unused)), + BUFFER * err __attribute__ ((unused))) { SCORE *tmp, *last = NULL; @@ -131,7 +134,7 @@ int mutt_parse_unscore (BUFFER * buf, BUFFER * s, unsigned long data, for (tmp = Score; tmp;) { last = tmp; tmp = tmp->next; - mutt_pattern_free (&last->pat); + pattern_list_wipe(&last->pat); p_delete(&last); } Score = NULL; @@ -143,7 +146,7 @@ int mutt_parse_unscore (BUFFER * buf, BUFFER * s, unsigned long data, last->next = tmp->next; else Score = tmp->next; - mutt_pattern_free (&tmp->pat); + pattern_list_wipe(&tmp->pat); p_delete(&tmp); /* there should only be one score per pattern, so we can stop here */ break;