X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fforw.c;h=140136a9abf8651d17786b96e6d76c886f02063a;hb=8edc5aaf86f9f77124664f6801bc6c6cdf258173;hp=e79e39584ccf637831c76702ec3da8b2a3e8a2aa;hpb=aed384169af5204b8002d06e7a22f89197963d2d;p=mmh diff --git a/uip/forw.c b/uip/forw.c index e79e395..140136a 100644 --- a/uip/forw.c +++ b/uip/forw.c @@ -226,11 +226,12 @@ main(int argc, char **argv) issue = 0; issue++; } - if (volume == 0) + if (volume == 0) { 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); @@ -238,7 +239,7 @@ main(int argc, char **argv) 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"); } } @@ -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 = getcpy(dtimenow(0)); + cptr->c_text = getcpy(dtimenow()); dat[0] = issue; dat[1] = volume;