X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/8890670d4c1e8e3f9608c2850c1fe299fb256776..ef1ba39e8dae81091b6c3e73e72825ef6edea3c6:/uip/burst.c diff --git a/uip/burst.c b/uip/burst.c index c156076a..49dad2d1 100644 --- a/uip/burst.c +++ b/uip/burst.c @@ -189,7 +189,7 @@ main (int argc, char **argv) } } - free ((char *) smsgs); + free(smsgs); context_replace (pfolder, folder); /* update current folder */ /* @@ -242,7 +242,7 @@ find_delim (int msgnum, struct smsg *smsgs, int *mimesw) content = parse_mime(msgnam); if (! content && *mimesw == 2) return 0; - else if (content) { + if (content) { smsgs[0].s_start = 0; smsgs[0].s_stop = content->c_begin - 1; msgp = 1; @@ -478,13 +478,13 @@ burst (struct msgs **mpp, int msgnum, struct smsg *smsgs, int numburst, admonish (f3, "unable to rename %s to", f1); (void)snprintf(f3, sizeof (f3), "%s/%d", maildir, i); - ext_hook("del-hook", f3, (char *)0); + ext_hook("del-hook", f3, NULL); } if (rename (f2, f1) == NOTOK) admonish (f1, "unable to rename %s to", f2); (void)snprintf(f3, sizeof (f3), "%s/%d", maildir, i); - ext_hook("add-hook", f3, (char *)0); + ext_hook("add-hook", f3, NULL); copy_msg_flags (mp, i, msgnum); mp->msgflags |= SEQMOD; @@ -507,7 +507,7 @@ burst (struct msgs **mpp, int msgnum, struct smsg *smsgs, int numburst, static void cpybrst (FILE *in, FILE *out, char *ifile, char *ofile, int len, int mime) { - register int c, state; + int c, state; for (state = mime ? S4 : S1; (c = fgetc (in)) != EOF && len > 0; len--) { if (c == 0)