X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/a9bb157da7d3cee576e8944eaf8fab2bdbc4be8d..63621a81d16ab743de6b57d47578a9a2c670ad22:/uip/mhn.c diff --git a/uip/mhn.c b/uip/mhn.c index 2eff96d7..4a3b33a7 100644 --- a/uip/mhn.c +++ b/uip/mhn.c @@ -16,6 +16,8 @@ #include #include #include +#include "mhmisc.h" +#include "sbr/m_maildir.h" #include "mhfree.h" #include "mhshowsbr.h" @@ -74,13 +76,6 @@ DEFINE_SWITCH_ARRAY(MHN, switches); #undef X -/* mhmisc.c */ -extern int npart; -extern int ntype; -extern char *parts[NPARTS + 1]; -extern char *types[NTYPES + 1]; -extern int userrs; - int debugsw = 0; int verbosw = 0; @@ -100,14 +95,6 @@ static int storesw = 0; #define quitser pipeser -/* mhparse.c */ -CT parse_mime (char *); - -/* mhmisc.c */ -int part_ok (CT); -int type_ok (CT, int); -void flush_errors (void); - /* * static prototypes */ @@ -259,7 +246,7 @@ do_cache: case FORMSW: if (!(cp = *argp++) || *cp == '-') adios (NULL, "missing argument to %s", argp[-2]); - mh_xfree(formsw); + free(formsw); formsw = getcpy (etcpath (cp)); continue; @@ -310,8 +297,7 @@ do_cache: if (*cp == '+' || *cp == '@') { if (folder) adios (NULL, "only one folder at a time!"); - else - folder = pluspath (cp); + folder = pluspath (cp); } else app_msgarg(&msgs, cp); } @@ -325,7 +311,7 @@ do_cache: */ if ((cp = getenv ("MHN"))) { if ((fp = fopen (cp, "r"))) { - readconfig ((struct node **) 0, fp, cp, 0); + readconfig(NULL, fp, cp, 0); fclose (fp); } else { admonish ("", "unable to read $MHN profile (%s)", cp); @@ -336,7 +322,7 @@ do_cache: * Read the standard profile setup */ if ((fp = fopen (cp = etcpath ("mhn.defaults"), "r"))) { - readconfig ((struct node **) 0, fp, cp, 0); + readconfig(NULL, fp, cp, 0); fclose (fp); }