X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fseq_setunseen.c;h=b18de5d2a3143ef35d8ff550e8f796f5e14b5c80;hb=40821f5c1316e9205a08375e7075909cc9968e7d;hp=8c9fe41cf78125f224bb673b94e448bbbcf24a32;hpb=ced6090a330d3d83d0bce709f756aa3d7d65fea4;p=mmh diff --git a/sbr/seq_setunseen.c b/sbr/seq_setunseen.c index 8c9fe41..b18de5d 100644 --- a/sbr/seq_setunseen.c +++ b/sbr/seq_setunseen.c @@ -18,7 +18,7 @@ */ void -seq_setunseen (struct msgs *mp, int seen) +seq_setunseen(struct msgs *mp, int seen) { int msgnum; char **ap, *cp, *dp; @@ -27,10 +27,10 @@ seq_setunseen (struct msgs *mp, int seen) ** Get the list of sequences for Unseen-Sequence ** and split them. */ - if ((cp = context_find (usequence))) { - dp = getcpy (cp); - if (!(ap = brkstring (dp, " ", "\n")) || !*ap) { - free (dp); + if ((cp = context_find(usequence))) { + dp = getcpy(cp); + if (!(ap = brkstring(dp, " ", "\n")) || !*ap) { + free(dp); return; } } else { @@ -46,14 +46,14 @@ seq_setunseen (struct msgs *mp, int seen) /* make sure sequence exists first */ if (seq_getnum(mp, *ap) != -1) for (msgnum = mp->lowsel; msgnum <= mp->hghsel; msgnum++) - if (is_unseen (mp, msgnum)) - seq_delmsg (mp, *ap, msgnum); + if (is_unseen(mp, msgnum)) + seq_delmsg(mp, *ap, msgnum); } else { for (msgnum = mp->lowmsg; msgnum <= mp->hghmsg; msgnum++) - if (is_unseen (mp, msgnum)) - seq_addmsg (mp, *ap, msgnum, -1, 0); + if (is_unseen(mp, msgnum)) + seq_addmsg(mp, *ap, msgnum, -1, 0); } } - free (dp); + free(dp); }