X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/ecd50cc5f6c2a427e821483993678b78c94ffdfd..016bb7b5f141f5433d986aaa912a71b43a4cfdc2:/uip/scansbr.c diff --git a/uip/scansbr.c b/uip/scansbr.c index bbc5a168..a4508c02 100644 --- a/uip/scansbr.c +++ b/uip/scansbr.c @@ -11,7 +11,7 @@ #include #include #include -#include "../sbr/terminal.h" +#include "sbr/terminal.h" static struct format *fmt; static struct comp *datecomp; /* pntr to "date" comp */ @@ -284,7 +284,7 @@ body:; goto finished; default: - adios (NULL, "getfld() returned %d", state); + die("getfld() returned %d", state); } } @@ -348,17 +348,19 @@ finished: if (scnout && (ferror(scnout) || fclose (scnout) == EOF)) DIEWRERR(); - return (state != FILEEOF ? SCNERR : encrypted ? SCNENC : SCNMSG); + return state != FILEEOF ? SCNERR : encrypted ? SCNENC : SCNMSG; } /* The following two functions allow access to the global gstate above. */ void -scan_finished(void) { +scan_finished(void) +{ m_getfld_state_destroy (&gstate); } void -scan_detect_mbox_style (FILE *f) { +scan_detect_mbox_style (FILE *f) +{ m_unknown (&gstate, f); }