X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fsortm.c;h=59247c2b360c5f2c62b3398c2f91dc134ff3fc17;hb=7e3bc577e84e13a47005a706718bd6ec0e6a0e0a;hp=0caab302ff47ee2ca9cc4b8953573f31328ae46a;hpb=682962d94b21e120c78a52a8bdcb6aa994330a14;p=mmh diff --git a/uip/sortm.c b/uip/sortm.c index 0caab30..59247c2 100644 --- a/uip/sortm.c +++ b/uip/sortm.c @@ -43,7 +43,7 @@ struct smsg { static struct smsg *smsgs; int nmsgs; -char *subjsort = (char *) 0; /* sort on subject if != 0 */ +char *subjsort = NULL; /* sort on subject if != 0 */ unsigned long datelimit = 0; int submajor = 0; /* if true, sort on subject-major */ int verbose; @@ -126,7 +126,7 @@ main(int argc, char **argv) subjsort = "subject"; continue; case NSUBJSW: - subjsort = (char *)0; + subjsort = NULL; continue; case LIMSW: @@ -562,8 +562,8 @@ rename_msgs(struct msgs *mp, struct smsg **mlist) ** messages in the folder. */ - (void)snprintf(f1, sizeof (f1), "%s/%d", mp->foldpath, old); - (void)snprintf(newbuf, sizeof (newbuf), "%s/%d", + snprintf(f1, sizeof (f1), "%s/%d", mp->foldpath, old); + snprintf(newbuf, sizeof (newbuf), "%s/%d", mp->foldpath, mp->hghmsg + 1); ext_hook("ref-hook", f1, newbuf); @@ -579,7 +579,7 @@ rename_msgs(struct msgs *mp, struct smsg **mlist) ** to the real place. */ - (void)snprintf(f1, sizeof (f1), "%s/%d", mp->foldpath, new); + snprintf(f1, sizeof (f1), "%s/%d", mp->foldpath, new); ext_hook("ref-hook", newbuf, f1); if (rename(tmpfil, m_name(new)) == NOTOK)