X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fcomp.c;h=cbe24d86c18e75a0f212128701b1e1dbe4655b73;hp=87953ad278baf3fd8883eced99ce5fc7cbaad5ac;hb=ee4f43cf2ef0084ec698e4e87159a94c01940622;hpb=8d77b48284c58c135a6b2787e721597346ab056d diff --git a/uip/comp.c b/uip/comp.c index 87953ad..cbe24d8 100644 --- a/uip/comp.c +++ b/uip/comp.c @@ -23,11 +23,9 @@ static struct swit switches[] = { { "nouse", 0 }, #define WHATSW 5 { "whatnowproc program", 0 }, -#define NWHATSW 6 - { "nowhatnowproc", 0 }, -#define VERSIONSW 7 +#define VERSIONSW 6 { "version", 0 }, -#define HELPSW 8 +#define HELPSW 7 { "help", 0 }, { NULL, 0 } }; @@ -36,7 +34,7 @@ static struct swit switches[] = { int main(int argc, char **argv) { - int use = NOUSE, nedit = 0, nwhat = 0; + int use = NOUSE, nedit = 0; int in, out; char *cp, *cwd, *maildir; char *ed = NULL, *form = NULL; @@ -86,10 +84,6 @@ main(int argc, char **argv) case WHATSW: if (!(whatnowproc = *argp++) || *whatnowproc == '-') adios(NULL, "missing argument to %s", argp[-2]); - nwhat = 0; - continue; - case NWHATSW: - nwhat++; continue; case FORMSW: @@ -176,10 +170,6 @@ main(int argc, char **argv) } context_save(); - - if (nwhat) { - done(0); - } what_now(ed, nedit, use, drft, NULL, 0, NULLMP, NULL, cwd); done(1); return 1;