Print this page
patch tsoome-feedback

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/pcidr/pcidr.c
          +++ new/usr/src/cmd/pcidr/pcidr.c
↓ open down ↓ 16 lines elided ↑ open up ↑
  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   23   * Copyright 2005 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  #include <stdio.h>
  30   28  #include <stdlib.h>
  31   29  #include <unistd.h>
  32   30  #include <strings.h>
  33   31  #include <string.h>
  34   32  #include <errno.h>
  35   33  #include <sys/param.h>
  36   34  #include <sys/systeminfo.h>
  37   35  #include <sys/sysevent/eventdefs.h>
  38   36  #include <sys/sysevent/dr.h>
↓ open down ↓ 209 lines elided ↑ open up ↑
 248  246  
 249  247          *argip = i;
 250  248          return (attrlistp);
 251  249  
 252  250          /*NOTREACHED*/
 253  251  ERR_ARG:
 254  252          if (eqp != NULL)
 255  253                  *eqp = '=';
 256  254          dprint(DDEBUG, "%s: bad attribute argv[%d]: \"%s\"\n", fn, i, argv[i]);
 257  255  ERR:
 258      -        if (attrlistp != NULL)
 259      -                nvlist_free(attrlistp);
      256 +        nvlist_free(attrlistp);
 260  257          return (NULL);
 261  258  }
 262  259  
 263  260  
 264  261  static struct {
 265  262          int cmd;
 266  263          char *name;
 267  264  } si_cmd_nametab[] = {
 268  265          SI_PLATFORM, "SI_PLATFORM",
 269  266          SI_MACHINE, "SI_MACHINE",
↓ open down ↓ 387 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX