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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/bnu/uustat.c
          +++ new/usr/src/cmd/bnu/uustat.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      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  31   31  #include <time.h>
  32   32  #include "uucp.h"
  33   33  
  34   34  #ifdef  V7
  35   35  #define O_RDONLY        0
  36   36  #endif
  37   37  #define KILLMSG "the system administrator has killed job"
  38   38  #define USAGE1  "[-q] | [-m] | [-k JOB [-n]] | [-r JOB [-n]] | [-p]"
  39   39  #define USAGE2  "[-a] [-s SYSTEM [-j]] [-u USER] [-S STATE]"
  40   40  #define USAGE3  "-t SYSTEM [-d number] [-c]"
↓ open down ↓ 1494 lines elided ↑ open up ↑
1535 1535                                  td->tm_sec
1536 1536                        );
1537 1537          return date;
1538 1538  }
1539 1539  
1540 1540  static void
1541 1541  friendlytime(uplimit, lolimit)
1542 1542  char *uplimit, *lolimit;
1543 1543  {
1544 1544  
1545      -        char c;
1546      -
1547      -        c = *(uplimit+6);
1548 1545          friendlyptr->uhour[0] = *(uplimit+6);
1549 1546          friendlyptr->uhour[1] = *(uplimit+7);
1550 1547          friendlyptr->lhour[0] = *(lolimit+6);
1551 1548          friendlyptr->lhour[1] = *(lolimit+7);
1552 1549          friendlyptr->umin[0]  = *(uplimit+8);
1553 1550          friendlyptr->umin[1]  = *(uplimit+9);
1554 1551          friendlyptr->lmin[0]  = *(lolimit+8);
1555 1552          friendlyptr->lmin[1]  = *(lolimit+9);
1556 1553  
1557 1554          friendlyptr->uhour[2] = '\0';
↓ open down ↓ 40 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX