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/getconf/getconf.c
          +++ new/usr/src/cmd/getconf/getconf.c
↓ open down ↓ 22 lines elided ↑ open up ↑
  23   23   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
  26   26  
  27   27  /*
  28   28   * Copyright 1985, 1993 by Mortice Kern Systems Inc.  All rights reserved.
  29   29   *
  30   30   */
  31   31  
  32   32  /*
       33 + * Copyright (c) 2018, Joyent, Inc.
       34 + */
       35 +
       36 +/*
  33   37   * getconf -- POSIX.2 compatible utility to query configuration specific
  34   38   *            parameters.
  35   39   *         -- XPG4 support added June/93
  36   40   *
  37   41   *         -- XPG5 support added Dec/97
  38   42   *
  39   43   *         -- XPG6 support added May/2003
  40   44   */
  41   45  
  42   46  #include <stdio.h>
↓ open down ↓ 886 lines elided ↑ open up ↑
 929  933          if (aflag) {
 930  934  
 931  935  #define TabStop         8
 932  936  #define RightColumn     32
 933  937  #define DefPathName     "."
 934  938  
 935  939                  /*
 936  940                   * sort the table by the "name" field
 937  941                   * so we print it in sorted order
 938  942                   */
 939      -        qsort(&sctab[0], (sizeof (sctab)/sizeof (struct sctab))-1,
 940      -            sizeof (struct sctab), namecmp);
      943 +                qsort(&sctab[0], (sizeof (sctab) /
      944 +                    sizeof (struct sctab)) - 1,
      945 +                    sizeof (struct sctab), namecmp);
 941  946  
 942  947                  /*
 943  948                   * print all the known symbols and their values
 944  949                   */
 945  950                  for (scp = &sctab[0]; scp->name != NULL; ++scp) {
 946  951                          int stat;
 947  952  
 948  953                          /*
 949  954                           * create 2 columns:
 950  955                           *   variable name in the left column,
↓ open down ↓ 49 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX