X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/177f020f122827214159c46dcfe7ded1e3c8d1c3..1c332f6117bf1ffbc5e1e1724be23a7f4e56434f:/uip/mhn.c diff --git a/uip/mhn.c b/uip/mhn.c index dd3cf871..2eff96d7 100644 --- a/uip/mhn.c +++ b/uip/mhn.c @@ -11,10 +11,13 @@ #include #include #include +#include #include #include #include #include +#include "mhfree.h" +#include "mhshowsbr.h" #define MHN_SWITCHES \ X("auto", 0, AUTOSW) \ @@ -71,18 +74,6 @@ DEFINE_SWITCH_ARRAY(MHN, switches); #undef X -/* mhcachesbr.c */ -extern int rcachesw; -extern int wcachesw; -extern char *cache_public; -extern char *cache_private; - -/* mhshowsbr.c */ -extern char *progsw; -extern int nolist; -extern int nomore; /* flags for moreproc/header display */ -extern char *formsw; - /* mhmisc.c */ extern int npart; extern int ntype; @@ -117,13 +108,6 @@ int part_ok (CT); int type_ok (CT, int); void flush_errors (void); -/* mhcachesbr.c */ -void cache_all_messages (CT *); - -/* mhfree.c */ -extern CT *cts; -void freects_done (int) NORETURN; - /* * static prototypes */ @@ -195,9 +179,9 @@ main (int argc, char **argv) do_cache: if (!(cp = *argp++) || *cp == '-') adios (NULL, "missing argument to %s", argp[-2]); - switch (*icachesw = smatch (cp, caches)) { + switch (*icachesw = smatch (cp, cache_policy)) { case AMBIGSW: - ambigsw (cp, caches); + ambigsw (cp, cache_policy); done (1); case UNKWNSW: adios (NULL, "%s unknown", cp);