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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/krb5/ldap_util/kdb5_ldap_realm.c
          +++ new/usr/src/cmd/krb5/ldap_util/kdb5_ldap_realm.c
   1    1  /*
        2 + * Copyright 2017 Gary Mills
   2    3   * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
   3    4   * Use is subject to license terms.
   4    5   */
   5    6  
   6    7  /*
   7    8   * kadmin/ldap_util/kdb5_ldap_realm.c
   8    9   *
   9   10   * Copyright 1990,1991,2001, 2002 by the Massachusetts Institute of Technology.
  10   11   * All Rights Reserved.
  11   12   *
↓ open down ↓ 137 lines elided ↑ open up ↑
 149  150  static int get_ticket_policy(rparams,i,argv,argc)
 150  151      krb5_ldap_realm_params *rparams;
 151  152      int *i;
 152  153      char *argv[];
 153  154      int argc;
 154  155  {
 155  156      time_t date;
 156  157      time_t now;
 157  158      int mask = 0;
 158  159      krb5_error_code retval = 0;
 159      -    krb5_boolean no_msg = FALSE;
 160  160  
 161      -    krb5_boolean print_usage = FALSE;
 162  161      /* Solaris Kerberos */
 163  162      char *me = progname;
 164  163  
 165  164      time(&now);
 166  165      if (!strcmp(argv[*i], "-maxtktlife")) {
 167  166          if (++(*i) > argc-1)
 168  167              goto err_usage;
 169  168          date = get_date(argv[*i]);
 170  169          if (date == (time_t)(-1)) {
 171  170              retval = EINVAL;
↓ open down ↓ 123 lines elided ↑ open up ↑
 295  294          if (*(argv[*i]) == '+')
 296  295              rparams->tktflags |= KRB5_KDB_PWCHANGE_SERVICE;
 297  296          else if (*(argv[*i]) == '-')
 298  297              rparams->tktflags &= (int)(~KRB5_KDB_PWCHANGE_SERVICE);
 299  298          else
 300  299              goto err_usage;
 301  300  
 302  301          mask |=LDAP_REALM_KRBTICKETFLAGS;
 303  302      }
 304  303  err_usage:
 305      -    print_usage = TRUE;
 306  304  
 307  305  err_nomsg:
 308      -    no_msg = TRUE;
 309  306  
 310  307      return mask;
 311  308  }
 312  309  
 313  310  /*
 314  311   * This function will create a realm on the LDAP Server, with
 315  312   * the specified attributes.
 316  313   */
 317  314  void kdb5_ldap_create(argc, argv)
 318  315      int argc;
↓ open down ↓ 2362 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX