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/sbdadm/sbdadm.c
          +++ new/usr/src/cmd/sbdadm/sbdadm.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   * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
  24   24   * Copyright 2012 Milan Jurik. All rights reserved.
       25 + * Copyright (c) 2018, Joyent, Inc.
  25   26   */
  26   27  #include <stdlib.h>
  27   28  #include <stdio.h>
  28   29  #include <sys/types.h>
  29   30  #include <sys/stat.h>
  30   31  #include <fcntl.h>
  31   32  #include <unistd.h>
  32   33  #include <libintl.h>
  33   34  #include <errno.h>
  34   35  #include <string.h>
↓ open down ↓ 274 lines elided ↑ open up ↑
 309  310                  }
 310  311          }
 311  312  
 312  313  
 313  314          for (i = 0; i < operandLen; i++) {
 314  315                  for (j = 0; j < GUID_INPUT; j++) {
 315  316                          if (!isxdigit(operands[i][j])) {
 316  317                                  notValidHexNumber = B_TRUE;
 317  318                                  break;
 318  319                          }
 319      -                sGuid[j] = tolower(operands[i][j]);
      320 +                        sGuid[j] = tolower(operands[i][j]);
 320  321                  }
 321  322                  if ((notValidHexNumber == B_TRUE) ||
 322  323                      (strlen(operands[i]) != GUID_INPUT)) {
 323  324                          (void) fprintf(stderr, "%s: %s: %s%d%s\n",
 324  325                              cmdName, operands[i], gettext("must be "),
 325  326                              GUID_INPUT,
 326  327                              gettext(" hexadecimal digits long"));
 327  328                          notValidHexNumber = B_FALSE;
 328  329                          ret++;
 329  330                          continue;
↓ open down ↓ 423 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX