From: Pierre Habouzit Date: Mon, 18 Dec 2006 17:49:40 +0000 (+0100) Subject: wibble X-Git-Url: http://git.madism.org/?a=commitdiff_plain;h=a947bf0813ff40f0cd8604f0b8fcece1236669d3;p=apps%2Fmadmutt.git wibble Signed-off-by: Pierre Habouzit --- diff --git a/score.c b/score.c index 6f58ba1..7bf3811 100644 --- a/score.c +++ b/score.c @@ -20,9 +20,6 @@ typedef struct score_t { int exact; /* if this rule matches, don't evaluate any more */ struct score_t *next; } score_t; - -score_t *Score = NULL; - DO_INIT(score_t, score); static void score_wipe(score_t *sc) { @@ -31,9 +28,10 @@ static void score_wipe(score_t *sc) } DO_NEW(score_t, score); DO_DELETE(score_t, score); - DO_SLIST(score_t, score, score_delete); +static score_t *Score = NULL; + void mutt_check_rescore (CONTEXT * ctx) { int i; @@ -96,10 +94,7 @@ int mutt_parse_score (BUFFER * buf, BUFFER * s, (*last)->str = pattern; } pc = buf->data; - if (*pc == '=') { - (*last)->exact = 1; - pc++; - } + pc += (*last)->exact = (*pc == '='); (*last)->val = atoi(pc); set_option(OPTNEEDRESCORE); return 0;