X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fwhatnow.c;h=efdf02d4b7176195df17488f47f8398e70205fbd;hb=264f6e648f566f8efaa0188fb6a9e4908329d6d6;hp=0576ff84add95b4ca02d6e68690747f5bd2b05aa;hpb=412b2e54251ff6e20537f83b95c8ee76ea8c5c40;p=mmh diff --git a/uip/whatnow.c b/uip/whatnow.c index 0576ff8..efdf02d 100644 --- a/uip/whatnow.c +++ b/uip/whatnow.c @@ -70,23 +70,21 @@ static struct swit aleqs[] = { { "list", 0 }, #define SENDSW 4 { "send []", 0 }, -#define PUSHSW 5 - { "push []", 0 }, -#define QUITSW 6 +#define QUITSW 5 { "quit", 0 }, -#define DELETESW 7 +#define DELETESW 6 { "delete", 0 }, -#define CDCMDSW 8 +#define CDCMDSW 7 { "cd [directory]", 0 }, -#define PWDCMDSW 9 +#define PWDCMDSW 8 { "pwd", 0 }, -#define LSCMDSW 10 +#define LSCMDSW 9 { "ls", 0 }, -#define ATTACHCMDSW 11 +#define ATTACHCMDSW 10 { "attach", 0 }, -#define DETACHCMDSW 12 +#define DETACHCMDSW 11 { "detach [-n]", 0 }, -#define ALISTCMDSW 13 +#define ALISTCMDSW 12 { "alist", 0 }, { NULL, 0 } }; @@ -98,7 +96,7 @@ static char *myprompt = "\nWhat now? "; */ static int editfile(char **, char **, char *, int, struct msgs *, char *, char *, int); -static int sendfile(char **, char *, int); +static int sendfile(char **, char *); static int refile(char **, char *); static int removefile(char *); static void writelscmd(char *, int, char **); @@ -253,15 +251,9 @@ main(int argc, char **argv) removefile(drft); done(1); - case PUSHSW: - /* Send draft in background */ - if (sendfile(++argp, drft, 1)) - done(1); - break; - case SENDSW: /* Send draft */ - sendfile(++argp, drft, 0); + sendfile(++argp, drft); break; case REFILEOPT: @@ -752,7 +744,7 @@ copyf(char *ifile, char *ofile) */ static int -sendfile(char **arg, char *file, int pushsw) +sendfile(char **arg, char *file) { pid_t child_id; int vecp; @@ -768,8 +760,6 @@ sendfile(char **arg, char *file, int pushsw) case OK: vecp = 0; vec[vecp++] = invo_name; - if (pushsw) - vec[vecp++] = "-push"; if (arg) while (*arg) vec[vecp++] = *arg++;