X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/3b6170b27ba8fedbb4d67d2842bfaa38d4417962..b46d49ba:/uip/mhstore.c?ds=inline diff --git a/uip/mhstore.c b/uip/mhstore.c index 80eddb27..7fa819aa 100644 --- a/uip/mhstore.c +++ b/uip/mhstore.c @@ -14,6 +14,7 @@ #include #include #include +#include "h/done.h" #include #include "mhmisc.h" #include "sbr/m_maildir.h" @@ -78,7 +79,7 @@ main (int argc, char **argv) if (nmh_init(argv[0], 1)) { return 1; } - done=freects_done; + set_done(freects_done); arguments = getarguments (invo_name, argc, argv, 1); argp = arguments; @@ -161,10 +162,10 @@ do_cache: if (npreferred >= NPREFS) adios (NULL, "too many preferred types (starting with %s), %d max", cp, NPREFS); - preferred_types[npreferred] = cp; + mime_preference[npreferred].type = cp; cp = strchr(cp, '/'); if (cp) *cp++ = '\0'; - preferred_subtypes[npreferred++] = cp; + mime_preference[npreferred++].subtype = cp; continue; case NPREFERSW: