]> diplodocus.org Git - nmh/commitdiff
send.c, whatnowsbr.c: Delete option variables set but never read.
authorRalph Corderoy <ralph@inputplus.co.uk>
Wed, 1 Nov 2017 11:39:37 +0000 (11:39 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Wed, 1 Nov 2017 11:39:37 +0000 (11:39 +0000)
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.

uip/send.c
uip/whatnowsbr.c

index 7bf3c7c..235946e 100644 (file)
@@ -114,7 +114,7 @@ int
 main (int argc, char **argv)
 {
     int msgp = 0, vecp;
 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;
     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;
     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; }
     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:
                    continue;
 
                case MIMESW:
-                   mime++;
                    vec[vecp++] = --cp;
                    continue;
                case NMIMESW:
                    vec[vecp++] = --cp;
                    continue;
                case NMIMESW:
-                   mime = 0;
                    vec[vecp++] = --cp;
                    continue;
 
                case SNOOPSW:
                    vec[vecp++] = --cp;
                    continue;
 
                case SNOOPSW:
-                    snoop++;
                    vec[vecp++] = --cp;
                    continue;
 
                    vec[vecp++] = --cp;
                    continue;
 
index 50001f1..9d9ab63 100644 (file)
@@ -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;
     char **arguments, *savearg[MAXARGS], **vec;
     const char *user = NULL, *saslmech = NULL;
     char *auth_svc = NULL;
-    int snoop = 0;
     struct stat st;
 
     /*
     struct stat st;
 
     /*
@@ -1125,7 +1124,6 @@ sendit (char *sp, char **arg, char *file, int pushed)
                    continue;
 
                case SNOOPSW:
                    continue;
 
                case SNOOPSW:
-                    snoop++;
                    vec[vecp++] = --cp;
                    continue;
 
                    vec[vecp++] = --cp;
                    continue;