From: markus schnalke Date: Tue, 3 Nov 2015 07:36:45 +0000 (+0100) Subject: Remove unused parameter X-Git-Tag: mmh-0.3~67 X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=2f2a1446c8ed6b3e466425561c0a09f9bf417b05;p=mmh Remove unused parameter Reported by -Wextra -pedantic. --- diff --git a/uip/whatnow.c b/uip/whatnow.c index 7e54929..4b45a0c 100644 --- a/uip/whatnow.c +++ b/uip/whatnow.c @@ -72,7 +72,7 @@ static char *myprompt = "\nWhat now? "; /* ** 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 *); @@ -85,7 +85,7 @@ static int system_in_dir(const char *, const 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]; @@ -164,7 +164,7 @@ main(int argc, char **argv) /* 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); } @@ -192,7 +192,7 @@ main(int argc, char **argv) /* Call an editor on the draft file */ if (*++argp) ed = *argp++; - editfile(&ed, argp, drft, NOUSE); + editfile(&ed, argp, drft); break; case LISTSW: @@ -489,7 +489,7 @@ static char *edsave = NULL; /* the editor we used previously */ 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];