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/pg/pg.c
          +++ new/usr/src/cmd/pg/pg.c
↓ open down ↓ 14 lines elided ↑ open up ↑
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  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 (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  24   24   * Copyright (c) 2016 by Delphix. All rights reserved.
       25 + * Copyright (c) 2018, Joyent, Inc.
  25   26   */
  26   27  
  27   28  /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
  28   29  /*        All Rights Reserved   */
  29   30  
  30   31  #include <signal.h>
  31   32  #include <setjmp.h>
  32   33  #include <sys/types.h>
  33   34  #include <sys/dirent.h>
  34   35  #include <sys/stat.h>
↓ open down ↓ 184 lines elided ↑ open up ↑
 219  220                                  i++;
 220  221                          }
 221  222                          i--;
 222  223                          argc--;
 223  224                  }
 224  225          }
 225  226  
 226  227          /* check for non-standard + option */
 227  228          for (i = 1; i < argc; i++) {
 228  229                  if (strcmp(argv[i], "--") == 0)
 229      -                break;
      230 +                        break;
 230  231  
 231  232                  if (argv[i][0] == '+') {
 232  233                          if (argv[i][1] == '/') {
 233  234                                  srchopt++;
 234  235                                  initopt = 0;
 235  236                                  for (s = &argv[i][2], p = initbuf; *s != '\0'; )
 236  237                                          if (p < initbuf + sizeof (initbuf))
 237  238                                                  *p++ = *s++;
 238  239                                          else {
 239  240                                                  (void) fprintf(stderr, gettext(
↓ open down ↓ 1588 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX