projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed remaining lines from the --with-pager=... removal, months ago.
[mmh]
/
uip
/
burst.c
diff --git
a/uip/burst.c
b/uip/burst.c
index
ec50708
..
66831c1
100644
(file)
--- a/
uip/burst.c
+++ b/
uip/burst.c
@@
-363,14
+363,14
@@
burst(struct msgs **mpp, int msgnum, struct smsg *smsgs, int numburst,
if (rename(f1, f3) == NOTOK)
admonish(f3, "unable to rename %s to", f1);
if (rename(f1, f3) == NOTOK)
admonish(f3, "unable to rename %s to", f1);
- (void)snprintf(f3, sizeof (f3), "%s/%d", maildir, i);
- ext_hook("del-hook", f3, (char *)0);
+ snprintf(f3, sizeof (f3), "%s/%d", maildir, i);
+ ext_hook("del-hook", f3, NULL);
}
if (rename(f2, f1) == NOTOK)
admonish(f1, "unable to rename %s to", f2);
}
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);
+ snprintf(f3, sizeof (f3), "%s/%d", maildir, i);
+ ext_hook("add-hook", f3, NULL);
copy_msg_flags(mp, i, msgnum);
mp->msgflags |= SEQMOD;
copy_msg_flags(mp, i, msgnum);
mp->msgflags |= SEQMOD;
@@
-398,43
+398,43
@@
cpybrst(FILE *in, FILE *out, char *ifile, char *ofile, int len)
if (c == 0)
continue;
switch (state) {
if (c == 0)
continue;
switch (state) {
- case S1:
- switch (c) {
- case '-':
- state = S3;
- break;
-
- default:
- state = S2;
- case '\n':
- fputc(c, out);
- break;
- }
+ case S1:
+ switch (c) {
+ case '-':
+ state = S3;
break;
break;
- case S2:
- switch (c) {
- case '\n':
- state = S1;
- default:
- fputc(c, out);
- break;
- }
+ default:
+ state = S2;
+ case '\n':
+ fputc(c, out);
+ break;
+ }
+ break;
+
+ case S2:
+ switch (c) {
+ case '\n':
+ state = S1;
+ default:
+ fputc(c, out);
+ break;
+ }
+ break;
+
+ case S3:
+ switch (c) {
+ case ' ':
+ state = S2;
break;
break;
- case S3:
- switch (c) {
- case ' ':
- state = S2;
- break;
-
- default:
- state = (c == '\n') ? S1 : S2;
- fputc('-', out);
- fputc(c, out);
- break;
- }
+ default:
+ state = (c == '\n') ? S1 : S2;
+ fputc('-', out);
+ fputc(c, out);
break;
break;
+ }
+ break;
}
}
}
}