]> diplodocus.org Git - nmh/commitdiff
mhshowsbr.c: Delete single-use global int `nolist'.
authorRalph Corderoy <ralph@inputplus.co.uk>
Tue, 23 Jan 2018 18:20:16 +0000 (18:20 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 11 Feb 2018 13:06:35 +0000 (13:06 +0000)
Was only used in one place for its value that was always zero.

uip/mhshowsbr.c

index ef010721b6c05dbe94ee2545c1a4305405bca71a..45c1a5cd258d42ab694f947fab637afc2b7a5a18 100644 (file)
@@ -34,8 +34,6 @@
 
 extern int debugsw;
 
 
 extern int debugsw;
 
-int nolist   = 0;
-
 char *progsw = NULL;
 
 /* flags for moreproc/header display */
 char *progsw = NULL;
 
 /* flags for moreproc/header display */
@@ -913,7 +911,7 @@ parse_display_string (CT ct, char *cp, int *xstdin, int *xlist,
 
            case 'l':
                /* display listing prior to displaying content */
 
            case 'l':
                /* display listing prior to displaying content */
-               *xlist = !nolist;
+               *xlist = 1;
                break;
 
            case 's':
                break;
 
            case 's':