X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fmhshow.c;h=179173ef88a0edb42a15fcc261b343c090e980e0;hp=475517172e587a5bd7d56b47f68c2d09f3d6b666;hb=25c0bc3f1c034964421f8007e5802c647c5dc908;hpb=56a805299de35d8924969138aef4d0f1580daa6d diff --git a/uip/mhshow.c b/uip/mhshow.c index 4755171..179173e 100644 --- a/uip/mhshow.c +++ b/uip/mhshow.c @@ -109,9 +109,6 @@ extern int userrs; int debugsw = 0; int verbosw = 0; -/* The list of top-level contents to display */ -CT *cts = NULL; - #define quitser pipeser /* mhparse.c */ @@ -128,12 +125,13 @@ void show_all_messages (CT *); /* mhfree.c */ void free_content (CT); +extern CT *cts; +void freects_done (int) NORETURN; /* * static prototypes */ static RETSIGTYPE pipeser (int); -static int freectp_done (int); int @@ -148,7 +146,7 @@ main (int argc, char **argv) CT ct, *ctp; FILE *fp; - done=freectp_done; + done=freects_done; #ifdef LOCALE setlocale(LC_ALL, ""); @@ -455,7 +453,8 @@ do_cache: context_save (); /* save the context file */ } - return done (0); + done (0); + return 1; } @@ -472,17 +471,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 */ -}