/*
** static prototypes
*/
-static int editfile(char **, char **, char *, int);
+static int editfile(char **, char **, char *);
static int sendfile(char **, char *);
static int refile(char **, char *);
static int removefile(char *);
int
main(int argc, char **argv)
{
- int use = 0;
+ int use = NOUSE;
char *cp;
char *ed = NULL, *drft = NULL;
char buf[BUFSIZ], prompt[BUFSIZ];
/* start editing the draft, unless editor is the empty string */
if (*ed) {
- if (editfile(&ed, NULL, drft, use) <0) {
+ if (editfile(&ed, NULL, drft) <0) {
if (!use) {
unlink(drft);
}
/* Call an editor on the draft file */
if (*++argp)
ed = *argp++;
- editfile(&ed, argp, drft, NOUSE);
+ editfile(&ed, argp, drft);
break;
case LISTSW:
static int
-editfile(char **ed, char **arg, char *file, int use)
+editfile(char **ed, char **arg, char *file)
{
int pid, status, vecp;
char *cp, *vec[MAXARGS];