X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fm_convert.c;h=734bdb58f6cdd53e631b2cb8bab0f1650d5dc851;hb=dee26acad9bca6aec7dca5c428b07a386909081b;hp=b535fe3a9b20b4e26d13fb02803bea83d3b2f69a;hpb=99e89d0fcc69e509924b0a14a56e10d15721ccb0;p=mmh diff --git a/sbr/m_convert.c b/sbr/m_convert.c index b535fe3..734bdb5 100644 --- a/sbr/m_convert.c +++ b/sbr/m_convert.c @@ -79,7 +79,7 @@ m_convert(struct msgs *mp, char *name) ** ALLOW_BEYOND is set, and can appear only on its own. ** Also, it is available in any folder. */ - if ((mp->msgflags & ALLOW_BEYOND) && !strcmp(cp, seq_beyond)) { + if ((mp->msgflags & ALLOW_BEYOND) && strcmp(cp, seq_beyond)==0) { addtosel(mp, getbeyond(mp)); return 1; } @@ -87,7 +87,7 @@ m_convert(struct msgs *mp, char *name) /* ** Handle the special all sequence: replace `a' with `f-l' */ - if (!strcmp(cp, seq_all)) { + if (strcmp(cp, seq_all)==0) { cp = concat(seq_first, "-", seq_last, NULL); } @@ -203,7 +203,7 @@ rangerr: */ if (first > mp->hghmsg || first < mp->lowmsg || !does_exist(mp, first)) { - if (!strcmp(name, seq_cur)) + if (strcmp(name, seq_cur)==0) advise(NULL, "no current message"); else /* this case seems to never be reached */ @@ -342,7 +342,7 @@ attr(struct msgs *mp, char *cp) int first = 0; /* hack for "c-..." */ - if (!strcmp(cp, seq_cur)) + if (strcmp(cp, seq_cur)==0) return 0; /* "c:..." -- this code need to be rewritten... */ if (strncmp(seq_cur, cp, strlen(seq_cur))==0 && @@ -354,7 +354,7 @@ attr(struct msgs *mp, char *cp) if (!(dp = context_find(nsequence))) { dp = seq_neg; /* use default */ } - if (dp && *dp && isprefix(dp, cp)) { + if (*dp && strncmp(cp, dp, strlen(dp))==0) { inverted = 1; cp += strlen(dp); } @@ -375,17 +375,17 @@ attr(struct msgs *mp, char *cp) ** seq:l */ if (isalpha(*dp)) { - if (!strcmp(dp, seq_prev)) { + if (strcmp(dp, seq_prev)==0) { convdir = -1; first = (mp->curmsg > 0) && (mp->curmsg <= mp->hghmsg) ? mp->curmsg - 1 : mp->hghmsg; - } else if (!strcmp(dp, seq_next)) { + } else if (strcmp(dp, seq_next)==0) { convdir = 1; first = (mp->curmsg >= mp->lowmsg) ? mp->curmsg + 1 : mp->lowmsg; - } else if (!strcmp(dp, seq_first)) { + } else if (strcmp(dp, seq_first)==0) { convdir = 1; - } else if (!strcmp(dp, seq_last)) { + } else if (strcmp(dp, seq_last)==0) { convdir = -1; } else return BADLST;