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/sgs/ar/common/main.c
          +++ new/usr/src/cmd/sgs/ar/common/main.c
↓ open down ↓ 17 lines elided ↑ open up ↑
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*      Copyright (c) 1988 AT&T */
  22   22  /*        All Rights Reserved   */
  23   23  
  24   24  /*
  25   25   * Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
  26   26   */
  27   27  
       28 +/*
       29 + * Copyright (c) 2018, Joyent, Inc.
       30 + */
       31 +
  28   32  #include "inc.h"
  29   33  #include "conv.h"
  30   34  
  31   35  /*
  32   36   * Forward declarations
  33   37   */
  34   38  static void setup(int, char **, Cmd_info *);
  35   39  static void setcom(Cmd_info *, Cmd_func);
  36   40  static void usage(void);
  37   41  static void sigexit(int sig);
↓ open down ↓ 232 lines elided ↑ open up ↑
 270  274                  case 'V':
 271  275                          /*
 272  276                           * print version information.
 273  277                           * adjust command line access accounting
 274  278                           */
 275  279                          if (Vflag == 0) {
 276  280                                  (void) fprintf(stderr,
 277  281                                      MSG_ORIG(MSG_FMT_VERSION),
 278  282                                      (const char *)SGU_PKG,
 279  283                                      (const char *)SGU_REL);
 280      -                                        Vflag++;
      284 +                                Vflag++;
 281  285                          }
 282  286                          break;
 283  287                  case 'C':
 284  288                          cmd_info->opt_flgs |= C_FLAG;
 285  289                          break;
 286  290                  case 'M':
 287  291                          /*
 288  292                           * -M was an original undocumented AT&T feature that
 289  293                           * would force the use of mmap() instead of read()
 290  294                           * for pulling file data into the process before
↓ open down ↓ 79 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX