Print this page
patch tsoome-feedback

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/fm/fminject/common/inj_defn.c
          +++ new/usr/src/cmd/fm/fminject/common/inj_defn.c
↓ open down ↓ 16 lines elided ↑ open up ↑
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
  26   26  
  27      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  28      -
  29   27  /*
  30   28   * After having been declared, events, FMRIs and authorities must be defined
  31   29   * (instantiated) before they can be used as the subjects of commands.
  32   30   */
  33   31  
  34   32  #include <sys/sysmacros.h>
  35   33  #include <libnvpair.h>
  36   34  #include <string.h>
  37   35  #include <assert.h>
  38   36  
↓ open down ↓ 58 lines elided ↑ open up ↑
  97   95                  }
  98   96          }
  99   97  }
 100   98  
 101   99  void
 102  100  inj_defn_destroy(inj_defn_t *defn)
 103  101  {
 104  102          if (defn->defn_name != NULL)
 105  103                  inj_strfree(defn->defn_name);
 106  104  
 107      -        if (defn->defn_nvl != NULL)
 108      -                nvlist_free(defn->defn_nvl);
      105 +        nvlist_free(defn->defn_nvl);
 109  106  
 110  107          inj_defn_destroy_memlist(inj_list_next(&defn->defn_members));
 111  108  }
 112  109  
 113  110  static inj_defnmem_t *
 114  111  inj_defn_mem_create_common(inj_defnmemtype_t type)
 115  112  {
 116  113          inj_defnmem_t *dfm = inj_zalloc(sizeof (inj_defnmem_t));
 117  114  
 118  115          dfm->dfm_type = type;
↓ open down ↓ 719 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX