projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup addon to `mhbuild: Removed support for message/external-body'.
[mmh]
/
uip
/
forw.c
diff --git
a/uip/forw.c
b/uip/forw.c
index
e79e395
..
140136a
100644
(file)
--- a/
uip/forw.c
+++ b/
uip/forw.c
@@
-226,11
+226,12
@@
main(int argc, char **argv)
issue = 0;
issue++;
}
issue = 0;
issue++;
}
- if (volume == 0)
+ if (volume == 0) {
snprintf(buf, sizeof(buf), VFORMAT, digest);
snprintf(buf, sizeof(buf), VFORMAT, digest);
- if ((cp = context_find(buf)) == NULL ||
- (volume = atoi(cp)) <= 0)
- volume = 1;
+ if ((cp = context_find(buf)) == NULL ||
+ (volume = atoi(cp)) <= 0)
+ volume = 1;
+ }
if (!form)
form = digestcomps;
in = build_form(form, digest, volume, issue);
if (!form)
form = digestcomps;
in = build_form(form, digest, volume, issue);
@@
-238,7
+239,7
@@
main(int argc, char **argv)
close(in);
} else {
fmtstr = new_fs(form, forwcomps);
close(in);
} else {
fmtstr = new_fs(form, forwcomps);
- if (write(out, fmtstr, strlen(fmtstr)) != strlen(fmtstr)) {
+ if (write(out, fmtstr, strlen(fmtstr)) != (int)strlen(fmtstr)) {
adios(drft, "error writing");
}
}
adios(drft, "error writing");
}
}
@@
-325,7
+326,7
@@
build_form(char *form, char *digest, int volume, int issue)
cptr->c_text = digest;
FINDCOMP(cptr, "date");
if (cptr)
cptr->c_text = digest;
FINDCOMP(cptr, "date");
if (cptr)
- cptr->c_text = getcpy(dtimenow(0));
+ cptr->c_text = getcpy(dtimenow());
dat[0] = issue;
dat[1] = volume;
dat[0] = issue;
dat[1] = volume;