projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed -nowhatnowproc switch as it does nothing useful.
[mmh]
/
uip
/
comp.c
diff --git
a/uip/comp.c
b/uip/comp.c
index
87953ad
..
cbe24d8
100644
(file)
--- a/
uip/comp.c
+++ b/
uip/comp.c
@@
-23,11
+23,9
@@
static struct swit switches[] = {
{ "nouse", 0 },
#define WHATSW 5
{ "whatnowproc program", 0 },
{ "nouse", 0 },
#define WHATSW 5
{ "whatnowproc program", 0 },
-#define NWHATSW 6
- { "nowhatnowproc", 0 },
-#define VERSIONSW 7
+#define VERSIONSW 6
{ "version", 0 },
{ "version", 0 },
-#define HELPSW 8
+#define HELPSW 7
{ "help", 0 },
{ NULL, 0 }
};
{ "help", 0 },
{ NULL, 0 }
};
@@
-36,7
+34,7
@@
static struct swit switches[] = {
int
main(int argc, char **argv)
{
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;
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]);
case WHATSW:
if (!(whatnowproc = *argp++) || *whatnowproc == '-')
adios(NULL, "missing argument to %s", argp[-2]);
- nwhat = 0;
- continue;
- case NWHATSW:
- nwhat++;
continue;
case FORMSW:
continue;
case FORMSW:
@@
-176,10
+170,6
@@
main(int argc, char **argv)
}
context_save();
}
context_save();
-
- if (nwhat) {
- done(0);
- }
what_now(ed, nedit, use, drft, NULL, 0, NULLMP, NULL, cwd);
done(1);
return 1;
what_now(ed, nedit, use, drft, NULL, 0, NULLMP, NULL, cwd);
done(1);
return 1;