Print this page
8485 Remove set but unused variables in usr/src/cmd
        
*** 18,27 ****
--- 18,28 ----
   * 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,41 ****
  /*
   * 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.
   */
  
--- 31,40 ----
*** 172,182 ****
   */
  static void
  ypinit(int argc, char **argv)
  {
          int pid;
!         int stat, t;
          struct sigaction act;
          int ufd, tfd;
          SVCXPRT *utransp, *ttransp;
          struct netconfig *nconf;
          int connmaxrec = RPC_MAXDATASIZE;
--- 171,181 ----
   */
  static void
  ypinit(int argc, char **argv)
  {
          int pid;
!         int stat;
          struct sigaction act;
          int ufd, tfd;
          SVCXPRT *utransp, *ttransp;
          struct netconfig *nconf;
          int connmaxrec = RPC_MAXDATASIZE;
*** 235,245 ****
                  } else {
                      freopen(logfile, "a", stdout);
                      freopen(logfile, "a", stderr);
                  }
  
!                 t = open("/dev/tty", 2);
  
                  setpgrp();
          }
  
  #ifdef  SYSVCONFIG
--- 234,244 ----
                  } else {
                      freopen(logfile, "a", stdout);
                      freopen(logfile, "a", stderr);
                  }
  
!                 (void) open("/dev/tty", 2);
  
                  setpgrp();
          }
  
  #ifdef  SYSVCONFIG