X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/177f020f122827214159c46dcfe7ded1e3c8d1c3..827facc0fe3f6f0ef2a9e81917d2eb29fac209aa:/sbr/seq_setprev.c diff --git a/sbr/seq_setprev.c b/sbr/seq_setprev.c index 022628b6..176a3718 100644 --- a/sbr/seq_setprev.c +++ b/sbr/seq_setprev.c @@ -5,8 +5,11 @@ * complete copyright information. */ -#include -#include +#include "h/mh.h" +#include "context_find.h" +#include "brkstring.h" +#include "seq_add.h" +#include "h/utils.h" /* * Add all the messages currently SELECTED to @@ -25,14 +28,12 @@ seq_setprev (struct msgs *mp) * Get the list of sequences for Previous-Sequence * and split them. */ - if ((cp = context_find (psequence))) { - dp = mh_xstrdup(cp); - if (!(ap = brkstring (dp, " ", "\n")) || !*ap) { - free (dp); - return; - } - } else { - return; + if (!(cp = context_find(psequence))) + return; + dp = mh_xstrdup(cp); + if (!(ap = brkstring(dp, " ", "\n")) || !*ap) { + free(dp); + return; } /* Now add all SELECTED messages to each sequence */