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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/bnu/uuglist.c
          +++ new/usr/src/cmd/bnu/uuglist.c
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   *
  14   14   * When distributing Covered Code, include this CDDL HEADER in each
  15   15   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16   16   * If applicable, add the following below this CDDL HEADER, with the
  17   17   * fields enclosed by brackets "[]" replaced with your own identifying
  18   18   * information: Portions Copyright [yyyy] [name of copyright owner]
  19   19   *
  20   20   * CDDL HEADER END
  21   21   */
  22   22  /*
       23 + * Copyright 2017 Gary Mills
  23   24   * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
  24   25   * Use is subject to license terms.
  25   26   */
  26   27  
  27   28  /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
  28   29  /*        All Rights Reserved   */
  29   30  
  30   31  
  31      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  32      -
  33   32  #include        "uucp.h"
  34   33  
  35   34  #define MAXLENGTH 256
  36   35  #define C_MAX     512
  37   36  
  38   37  static void insert();
  39   38  void rproc(), uproc();
  40   39  
  41   40  static char  Nnament[MAXLENGTH][NAMESIZE];
  42   41  static char *Nptr[MAXLENGTH];
↓ open down ↓ 79 lines elided ↑ open up ↑
 122  121          Nnames++;
 123  122          return;
 124  123  }
 125  124  
 126  125  void
 127  126  rproc()
 128  127  {
 129  128          FILE *cfd;
 130  129          char line[BUFSIZ];
 131  130          char *carray[C_MAX];
 132      -        int na;
 133  131  
 134  132          cfd = fopen(GRADES, "r");
 135  133  
 136  134          while (rdfulline(cfd, line, BUFSIZ) != 0) {
 137  135  
 138      -                na = getargs(line, carray, C_MAX);
      136 +                (void) getargs(line, carray, C_MAX);
 139  137                  insert(carray[0]);
 140  138          }
 141  139  
 142  140          (void) fclose(cfd);
 143  141          return;
 144  142  }
 145  143  
 146  144  void
 147  145  uproc()
 148  146  {
↓ open down ↓ 40 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX