X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/177f020f122827214159c46dcfe7ded1e3c8d1c3..5f34de43:/uip/mhstore.c?ds=inline diff --git a/uip/mhstore.c b/uip/mhstore.c index 2b844c2a..265b203f 100644 --- a/uip/mhstore.c +++ b/uip/mhstore.c @@ -15,6 +15,8 @@ #include #include #include +#include "../sbr/m_maildir.h" +#include "mhfree.h" #define MHSTORE_SWITCHES \ X("auto", 0, AUTOSW) \ @@ -44,12 +46,6 @@ DEFINE_SWITCH_ARRAY(MHSTORE, switches); #undef X -/* mhcachesbr.c */ -extern int rcachesw; -extern int wcachesw; -extern char *cache_public; -extern char *cache_private; - /* mhmisc.c */ extern int npart; extern int ntype; @@ -73,10 +69,6 @@ int part_ok (CT); int type_ok (CT, int); void flush_errors (void); -/* mhfree.c */ -extern CT *cts; -void freects_done (int) NORETURN; - /* * static prototypes */ @@ -143,9 +135,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);