From: Ralph Corderoy Date: Wed, 1 Nov 2017 11:39:37 +0000 (+0000) Subject: send.c, whatnowsbr.c: Delete option variables set but never read. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/d4aff07086b9c2296a9dcac2f04f9f371b5801c4?ds=inline send.c, whatnowsbr.c: Delete option variables set but never read. Some options are passed on without the code parsing the options having to act upon their value. These don't need to store the option's Boolean value in a local variable that's never read. --- diff --git a/uip/send.c b/uip/send.c index 7bf3c7cb..235946ec 100644 --- a/uip/send.c +++ b/uip/send.c @@ -114,7 +114,7 @@ int main (int argc, char **argv) { int msgp = 0, vecp; - int isdf = 0, mime = 0; + int isdf = 0; int msgnum, status; char *cp, *dfolder = NULL, *maildir = NULL; char buf[BUFSIZ], **ap, **argp, **arguments, *program; @@ -122,7 +122,6 @@ main (int argc, char **argv) const char *user = NULL, *saslmech = NULL; struct msgs *mp; struct stat st; - int snoop = 0; char *auth_svc = NULL; if (nmh_init(argv[0], true, true)) { return 1; } @@ -226,16 +225,13 @@ main (int argc, char **argv) continue; case MIMESW: - mime++; vec[vecp++] = --cp; continue; case NMIMESW: - mime = 0; vec[vecp++] = --cp; continue; case SNOOPSW: - snoop++; vec[vecp++] = --cp; continue; diff --git a/uip/whatnowsbr.c b/uip/whatnowsbr.c index 50001f17..9d9ab633 100644 --- a/uip/whatnowsbr.c +++ b/uip/whatnowsbr.c @@ -976,7 +976,6 @@ sendit (char *sp, char **arg, char *file, int pushed) char **arguments, *savearg[MAXARGS], **vec; const char *user = NULL, *saslmech = NULL; char *auth_svc = NULL; - int snoop = 0; struct stat st; /* @@ -1125,7 +1124,6 @@ sendit (char *sp, char **arg, char *file, int pushed) continue; case SNOOPSW: - snoop++; vec[vecp++] = --cp; continue;