Print this page
8485 Remove set but unused variables in usr/src/cmd

@@ -18,19 +18,18 @@
  *
  * CDDL HEADER END
  */
 
 /*
+ * Copyright 2017 Gary Mills
  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  *
  */
 
 /* $Id: lpr.c 146 2006-03-24 00:26:54Z njacobs $ */
 
-#pragma ident   "%Z%%M% %I%     %E% SMI"
-
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
 #include <string.h>
 #include <locale.h>

@@ -73,11 +72,10 @@
         char prefetch[3];
         int prefetch_len = sizeof (prefetch);
         papi_encryption_t encryption = PAPI_ENCRYPT_NEVER;
         int dump = 0;
         int validate = 0;
-        int remove = 0;
         int copy = 1;   /* default is to copy the data */
         char *document_format = "text/plain";
         int c;
 
         (void) setlocale(LC_ALL, "");

@@ -168,11 +166,10 @@
                 case 'm':
                         papiAttributeListAddBoolean(&list, PAPI_ATTR_EXCL,
                                 "rfc-1179-mail", 1);
                         break;
                 case 'r':
-                        remove = 1;
                         break;
                 case 's':
                         copy = 0;
                         break;
                 case 'V':       /* validate */