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/zdump/zdump.c
          +++ new/usr/src/cmd/zdump/zdump.c
   1    1  /*
   2    2   * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
   3    3   * Use is subject to license terms.
   4    4   */
   5    5  
   6    6  /*
        7 + * Copyright (c) 2018, Joyent, Inc.
        8 + */
        9 +
       10 +/*
   7   11   * zdump 7.24
   8   12   * Taken from elsie.nci.nih.gov to replace the existing Solaris zdump,
   9   13   * which was based on an earlier version of the elsie code.
  10   14   *
  11   15   * For zdump 7.24, the following changes were made to the elsie code:
  12   16   *   locale/textdomain/messages to match existing Solaris style.
  13   17   *   Solaris verbose mode is documented to display the current time first.
  14   18   *   cstyle cleaned code.
  15   19   *   removed old locale/textdomain code.
  16   20   */
↓ open down ↓ 207 lines elided ↑ open up ↑
 224  228                          long    hi;
 225  229                          char    dummy;
 226  230  
 227  231                          if (sscanf(cutarg, "%ld%c", &hi, &dummy) == 1) {
 228  232                                  cuthiyear = hi;
 229  233                          } else if (sscanf(cutarg, "%ld,%ld%c",
 230  234                                  &lo, &hi, &dummy) == 2) {
 231  235                                          cutloyear = lo;
 232  236                                          cuthiyear = hi;
 233  237                          } else {
 234      -(void) fprintf(stderr, gettext("%s: wild -c argument %s\n"),
 235      -                                        progname, cutarg);
      238 +                                (void) fprintf(stderr,
      239 +                                    gettext("%s: wild -c argument %s\n"),
      240 +                                    progname, cutarg);
 236  241                                  exit(EXIT_FAILURE);
 237  242                          }
 238  243                  }
 239  244                  setabsolutes();
 240  245                  cutlotime = yeartot(cutloyear);
 241  246                  cuthitime = yeartot(cuthiyear);
 242  247          }
 243  248          (void) time(&now);
 244  249          longest = 0;
 245  250          for (i = optind; i < argc; ++i)
↓ open down ↓ 396 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX