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

@@ -18,19 +18,18 @@
  * information: Portions Copyright [yyyy] [name of copyright owner]
  *
  * CDDL HEADER END
  */
 /*
+ * Copyright 2017 Gary Mills
  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
 /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
 /*        All Rights Reserved   */
 
-#pragma ident   "%Z%%M% %I%     %E% SMI"
-
 #include "mail.h"
 
 /*
     NAME
         copylet - copy a given letter to a file pointer

@@ -88,11 +87,10 @@
                                         /* H_AFWDFROM lines? */
         int     didrcvlines = FALSE;    /* Did we already put out any */
                                         /* H_RECEIVED lines? */
         long    clen = -1L;
         int     htype;                  /* header type */
-        int     sav_htype;      /* Header type of last non-H_CONT header line */
         struct hdrs *hptr;
 
         if (!sending) {
                 /* Clear out any saved header info from previous message */
                 clr_hinfo();

@@ -294,11 +292,10 @@
                                 continue;
                         }
                         sav_suppress = suppress;
                         suppress = FALSE;
                         print_from_struct = FALSE;
-                        sav_htype = htype;
                         htype = isheader (buf, &ctf);
                         Dout(pn, 5, "loop 2: buf = %s, htype= %d/%s\n", buf, htype, header[htype].tag);
                         /* The following order is defined in the MTA documents. */
                         switch (htype) {
                         case H_CONT: