X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fmhtest.c;h=9590fd3c84af1109df224c94601d9ac3409fbd2b;hp=985147c73a24e6640b7b10595cc8bf90d194fd0a;hb=d8916ff5d389de5ab225cd6f40aeda1b285d0f28;hpb=56a805299de35d8924969138aef4d0f1580daa6d diff --git a/uip/mhtest.c b/uip/mhtest.c index 985147c..9590fd3 100644 --- a/uip/mhtest.c +++ b/uip/mhtest.c @@ -64,7 +64,6 @@ static struct swit switches[] = { int ebcdicsw = 0; /* hack for linking purposes */ /* mhparse.c */ -extern int checksw; extern char *tmp; /* directory to place temp files */ /* mhcachesbr.c */ @@ -89,9 +88,6 @@ pid_t xpid = 0; int debugsw = 0; int verbosw = 0; -/* The list of top-level contents to display */ -CT *cts = NULL; - #define quitser pipeser /* mhparse.c */ @@ -108,13 +104,14 @@ void flush_errors (void); /* mhfree.c */ void free_content (CT); +extern CT *cts; +void freects_done (int) NORETURN; /* * static prototypes */ static int write_content (CT *, char *); static RETSIGTYPE pipeser (int); -static int freectp_done (int); int @@ -128,7 +125,7 @@ main (int argc, char **argv) struct msgs *mp = NULL; CT ct, *ctp; - done=freectp_done; + done=freects_done; #ifdef LOCALE setlocale(LC_ALL, ""); @@ -366,7 +363,8 @@ do_cache: context_save (); /* save the context file */ } - return done (0); + done (0); + return 1; } @@ -398,17 +396,3 @@ pipeser (int i) done (1); /* NOTREACHED */ } - - -static int -freectp_done (int status) -{ - CT *ctp; - - if ((ctp = cts)) - for (; *ctp; ctp++) - free_content (*ctp); - - exit (status); - return 1; /* dead code to satisfy the compiler */ -}