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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/gss/gssd/gssdtest.c
          +++ new/usr/src/cmd/gss/gssd/gssdtest.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 2003 Sun Microsystems, Inc.  All rights reserved.
  24   25   * Use is subject to license terms.
  25   26   */
  26   27  
  27   28  /*
  28   29   * Test client for gssd.  This program is not shipped on the binary
  29   30   * release.
  30   31   */
  31   32  
  32   33  #include <stdio.h>
↓ open down ↓ 1254 lines elided ↑ open up ↑
1287 1288  }
1288 1289  
1289 1290  static void
1290 1291  _gss_delete_sec_context(argc, argv)
1291 1292  int argc;
1292 1293  char **argv;
1293 1294  {
1294 1295          OM_UINT32 status;
1295 1296          gss_ctx_id_t *context_handle;
1296 1297          OM_uint32 minor_status;
1297      -        uid_t uid;
1298 1298  
1299      -        uid = (uid_t) getuid();
1300 1299  
1301 1300          /* parse the command line to determine the variable input argument */
1302 1301  
1303 1302          if (argc == 0) {
1304 1303                  usage();
1305 1304                  return;
1306 1305          }
1307 1306  
1308 1307          if (strcmp(argv[0], "initiator") == 0) {
1309 1308                  context_handle = &initiator_context_handle;
↓ open down ↓ 873 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX