X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fmhn.c;h=41eb33abcc76df144dec009020d0e049da53ea14;hb=045101c0a79f43fe566422622f154d5cc0141d8a;hp=cfeac947622e6a58c3dd0956356cd4470265f785;hpb=174d375bb4b9bcaa0c3f28c422216f68703494a8;p=mmh diff --git a/uip/mhn.c b/uip/mhn.c index cfeac94..41eb33a 100644 --- a/uip/mhn.c +++ b/uip/mhn.c @@ -157,9 +157,6 @@ extern int userrs; int debugsw = 0; int verbosw = 0; -/* The list of top-level contents to display */ -CT *cts = NULL; - /* * variables for mhbuild (mhn -build) */ @@ -200,6 +197,8 @@ void cache_all_messages (CT *); /* mhfree.c */ void free_content (CT); +extern CT *cts; +int freects_done (int); /* * static prototypes @@ -220,6 +219,8 @@ main (int argc, char **argv) CT ct, *ctp; FILE *fp; + done=freects_done; + #ifdef LOCALE setlocale(LC_ALL, ""); #endif @@ -427,7 +428,7 @@ do_cache: if (folder) adios (NULL, "only one folder at a time!"); else - folder = path (cp + 1, *cp == '+' ? TFOLDER : TSUBCWF); + folder = pluspath (cp); } else app_msgarg(&msgs, cp); } @@ -702,17 +703,3 @@ pipeser (int i) done (1); /* NOTREACHED */ } - - -int -done (int status) -{ - CT *ctp; - - if ((ctp = cts)) - for (; *ctp; ctp++) - free_content (*ctp); - - exit (status); - return 1; /* dead code to satisfy the compiler */ -}