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

@@ -18,10 +18,11 @@
  * information: Portions Copyright [yyyy] [name of copyright owner]
  *
  * CDDL HEADER END
  */
 /*
+ * Copyright 2017 Gary Mills
  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
 /*      Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T     */

@@ -30,12 +31,10 @@
 /*
  * Portions of this source code were derived from Berkeley 4.3 BSD
  * under license from the Regents of the University of California.
  */
 
-#pragma ident   "%Z%%M% %I%     %E% SMI"
-
 /*
  * This contains the mainline code for the YP server.  Data
  * structures which are process-global are also in this module.
  */
 

@@ -172,11 +171,11 @@
  */
 static void
 ypinit(int argc, char **argv)
 {
         int pid;
-        int stat, t;
+        int stat;
         struct sigaction act;
         int ufd, tfd;
         SVCXPRT *utransp, *ttransp;
         struct netconfig *nconf;
         int connmaxrec = RPC_MAXDATASIZE;

@@ -235,11 +234,11 @@
                 } else {
                     freopen(logfile, "a", stdout);
                     freopen(logfile, "a", stderr);
                 }
 
-                t = open("/dev/tty", 2);
+                (void) open("/dev/tty", 2);
 
                 setpgrp();
         }
 
 #ifdef  SYSVCONFIG