X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fmhparam.c;h=49c9220a2529b2a2de1aaa4c40f1b3a923d3a708;hp=ece8c3c16c04e33c5fe5928eee9e8ce3228123ab;hb=6c40d481d661d532dd527eaf34cebb6d3f8ed086;hpb=017a82124bf2ea39ced5aa4c8f969c18b3c2fb90 diff --git a/uip/mhparam.c b/uip/mhparam.c index ece8c3c..49c9220 100644 --- a/uip/mhparam.c +++ b/uip/mhparam.c @@ -5,7 +5,9 @@ * Originally contributed by * Jeffrey C Honig * - * $Id$ + * This code is Copyright (c) 2002, by the authors of nmh. See the + * COPYRIGHT file in the root directory of the nmh distribution for + * complete copyright information. */ #include @@ -13,7 +15,6 @@ extern char *mhlibdir; extern char *mhetcdir; -char *sbackup = BACKUP_PREFIX; char *slink = LINK; static struct swit switches[] = { @@ -56,6 +57,7 @@ static struct proc procs [] = { { "postproc", &postproc }, { "rmfproc", &rmfproc }, { "rmmproc", &rmmproc }, + { "sendmail", &sendmail }, { "sendproc", &sendproc }, { "showmimeproc", &showmimeproc }, { "showproc", &showproc }, @@ -65,7 +67,7 @@ static struct proc procs [] = { { "whomproc", &whomproc }, { "etcdir", &mhetcdir }, { "libdir", &mhlibdir }, - { "sbackup", &sbackup }, + { "backup-prefix", &backup_prefix }, { "link", &slink }, { NULL, NULL }, }; @@ -146,7 +148,7 @@ main(int argc, char **argv) for (np = m_defs; np; np = np->n_next) printf("%s: %s\n", np->n_name, np->n_field); - } if (debug) { + } else if (debug) { struct proc *ps; /* @@ -177,7 +179,8 @@ main(int argc, char **argv) } } - return done (missed); + done (missed); + return 1; } @@ -187,7 +190,7 @@ p_find(char *str) struct proc *ps; for (ps = procs; ps->p_name; ps++) - if (!strcasecmp (ps->p_name, str)) + if (!mh_strcasecmp (ps->p_name, str)) return (*ps->p_field); return NULL;