Print this page
10120 smatch indenting fixes for usr/src/cmd
Reviewed by: Gergő Doma <domag02@gmail.com>
Portions contributed by: Joyce McIntosh <joyce.mcintosh@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/syseventd/daemons/syseventd/sysevent_client.c
          +++ new/usr/src/cmd/syseventd/daemons/syseventd/sysevent_client.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 (c) 2000-2001 by Sun Microsystems, Inc.
  24   24   * All rights reserved.
  25   25   */
  26   26  
  27      -#pragma ident   "%Z%%M% %I%     %E% SMI"
       27 +/*
       28 + * Copyright (c) 2018, Joyent, Inc.
       29 + */
  28   30  
  29   31  /*
  30   32   * syseventd client interfaces
  31   33   */
  32   34  
  33   35  #include <stdio.h>
  34   36  #include <sys/types.h>
  35   37  #include <stdarg.h>
  36   38  #include <stddef.h>
  37   39  #include <stdlib.h>
↓ open down ↓ 76 lines elided ↑ open up ↑
 114  116                  if (scp->client_data == NULL) {
 115  117                          (void) mutex_lock(&scp->client_lock);
 116  118                          scp->client_data = client_data;
 117  119                          scp->client_type = client_type;
 118  120                          scp->retry_limit = retry_limit;
 119  121                          scp->client_flags |= SE_CLIENT_LOADED;
 120  122                          (void) cond_init(&scp->client_cv, USYNC_THREAD,
 121  123                                  NULL);
 122  124                          (void) mutex_unlock(&scp->client_lock);
 123  125                          (void) mutex_unlock(&client_tbl_lock);
 124      -                                return (i);
      126 +                        return (i);
 125  127                  }
 126  128          }
 127  129  
 128  130          (void) mutex_unlock(&client_tbl_lock);
 129  131          syseventd_print(1, "Unable to insert into syseventd client table\n");
 130  132          return (-1);
 131  133  }
 132  134  
 133  135  /*
 134  136   * delete_client - called to remove an SLM from the client table.  Client
↓ open down ↓ 19 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX