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

@@ -18,10 +18,11 @@
  *
  * CDDL HEADER END
  */
 
 /*
+ * Copyright 2017 Gary Mills
  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
 /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */

@@ -122,11 +123,11 @@
                                 break;
                         }
 
                 case TCOM:
                         {
-                                unsigned char   *a1, *name;
+                                unsigned char   *name;
                                 int     argn, internal;
                                 struct argnod   *schain = gchain;
                                 struct ionod    *io = t->treio;
                                 short   cmdhash;
                                 short   comtype;

@@ -134,11 +135,10 @@
                                 exitval = 0;
 
                                 gchain = 0;
                                 argn = getarg(t);
                                 com = scan(argn);
-                                a1 = com[1];
                                 gchain = schain;
 
                                 if (argn != 0)
                                         cmdhash = pathlook(com[0], 1, comptr(t)->comset);