Print this page
10106 libreparse needs smatch fixes

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libreparse/common/fs_reparse_lib.c
          +++ new/usr/src/lib/libreparse/common/fs_reparse_lib.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 2009 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
  26   26  
       27 +/*
       28 + * Copyright (c) 2018, Joyent, Inc.
       29 + */
       30 +
  27   31  #include <stdio.h>
  28   32  #include <stdlib.h>
  29   33  #include <unistd.h>
  30   34  #include <strings.h>
  31   35  #include <string.h>
  32   36  #include <dirent.h>
  33   37  #include <sys/types.h>
  34   38  #include <sys/stat.h>
  35   39  #include <sys/param.h>
  36   40  #include <sys/errno.h>
↓ open down ↓ 230 lines elided ↑ open up ↑
 267  271  static void
 268  272  proto_plugin_fini()
 269  273  {
 270  274          rp_proto_plugin_t *p;
 271  275  
 272  276          /*
 273  277           * Protocols may call this framework during _fini
 274  278           */
 275  279          for (p = rp_proto_list; p != NULL; p = p->plugin_next) {
 276  280                  if (p->plugin_ops->rpo_fini)
 277      -                        p->plugin_ops->rpo_fini();
      281 +                        (void) p->plugin_ops->rpo_fini();
 278  282          }
 279  283          while ((p = rp_proto_list) != NULL) {
 280  284                  rp_proto_list = p->plugin_next;
 281  285                  if (p->plugin_handle != NULL)
 282  286                          (void) dlclose(p->plugin_handle);
 283  287                  free(p);
 284  288          }
 285  289  
 286  290          if (rp_proto_handle.rp_ops != NULL) {
 287  291                  free(rp_proto_handle.rp_ops);
↓ open down ↓ 150 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX