X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;ds=sidebyside;f=uip%2Fscansbr.c;h=fdfe4cd75ab86ffbafd1b534aa702b1f3a18b4b5;hb=43ea5347b6b445d926082d6e3c1ddec376e8692d;hp=1c68bc26d53afbfa4bfe8297f4b5a9ec40a3543d;hpb=51d0e643f8daeb2db8de0a3d31d7d7f038b48380;p=mmh diff --git a/uip/scansbr.c b/uip/scansbr.c index 1c68bc2..fdfe4cd 100644 --- a/uip/scansbr.c +++ b/uip/scansbr.c @@ -67,8 +67,8 @@ int sc_width(void); /* from termsbr.c */ #endif int -scan(FILE *inb, int innum, int outnum, char *nfs, int width, int curflg, - int unseen, int noisy) +scan(FILE *inb, int innum, int outnum, char *fmtstr, int width, int curflg, + int unseen) { int i, compnum, state; unsigned char *cp, *tmpbuf; @@ -101,7 +101,7 @@ scan(FILE *inb, int innum, int outnum, char *nfs, int width, int curflg, umask(~m_gmprot()); /* Compile format string */ - ncomps = fmt_compile(nfs, &fmt) + 1; + ncomps = fmt_compile(fmtstr, &fmt) + 1; FINDCOMP(bodycomp, "body"); FINDCOMP(datecomp, "date"); @@ -328,7 +328,7 @@ finished: if (bodycomp) bodycomp->c_text = saved_c_text; - if (noisy) + if (fmtstr) fputs(scanl, stdout); /* return dynamically allocated buffers to pool */