Print this page
10112 cfga_sata.c needs a smatch fix

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/cfgadm_plugins/sata/common/cfga_sata.c
          +++ new/usr/src/lib/cfgadm_plugins/sata/common/cfga_sata.c
↓ open down ↓ 15 lines elided ↑ open up ↑
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  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 2009 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   * Copyright 2018 OmniOS Community Edition (OmniOSce) Association.
       26 + * Copyright (c) 2018, Joyent, Inc.
  26   27   */
  27   28  
  28   29  #include <sys/param.h>
  29   30  #include <sys/stat.h>
  30   31  #include <errno.h>
  31   32  #include <string.h>
  32   33  #include <dirent.h>
  33   34  #include "cfga_sata.h"
  34   35  
  35   36  /*
↓ open down ↓ 1702 lines elided ↑ open up ↑
1738 1739                  (void) printf("cfga_msg: null str\n");
1739 1740                  return;
1740 1741          }
1741 1742  
1742 1743          if ((q = (char *)calloc(len + 1, 1)) == NULL) {
1743 1744                  perror("cfga_msg");
1744 1745                  return;
1745 1746          }
1746 1747  
1747 1748          (void) strcpy(q, str);
1748      -        (*msgp->message_routine)(msgp->appdata_ptr, q);
     1749 +        (void) (*msgp->message_routine)(msgp->appdata_ptr, q);
1749 1750  
1750 1751          free(q);
1751 1752  }
1752 1753  
1753 1754  /* cfgadm entry point */
1754 1755  /* ARGSUSED */
1755 1756  cfga_err_t
1756 1757  cfga_help(struct cfga_msg *msgp, const char *options, cfga_flags_t flags)
1757 1758  {
1758 1759          if (options != NULL) {
↓ open down ↓ 358 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX