X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/592b3e1bc2a812515c5e2d01f087ec0aa2d4e8e4..611897cb02e5179407358dd239b6a734fe66b77b:/uip/fmttest.c?ds=inline diff --git a/uip/fmttest.c b/uip/fmttest.c index 850e2d08..90df1e9e 100644 --- a/uip/fmttest.c +++ b/uip/fmttest.c @@ -625,7 +625,7 @@ process_single_file(FILE *in, struct msgs_array *comps, int *dat, int msgsize, * Read in the message and process the components */ - for (state = FLD;;) { + for (;;) { bufsz = sizeof(rbuf); state = m_getfld(&gstate, name, rbuf, &bufsz, in); switch (state) { @@ -650,8 +650,7 @@ process_single_file(FILE *in, struct msgs_array *comps, int *dat, int msgsize, if (fmt_findcomp("body")) { if ((i = strlen(rbuf)) < outwidth) { bufsz = min (outwidth, (int) sizeof rbuf - i); - state = m_getfld(&gstate, name, rbuf + i, - &bufsz, in); + m_getfld(&gstate, name, rbuf + i, &bufsz, in); } fmt_addcomptext("body", rbuf);