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/ul/ul.c
          +++ new/usr/src/cmd/ul/ul.c
↓ open down ↓ 4 lines elided ↑ open up ↑
   5    5  
   6    6  /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
   7    7  /*        All Rights Reserved   */
   8    8  
   9    9  /*
  10   10   * Copyright (c) 1980 Regents of the University of California.
  11   11   * All rights reserved. The Berkeley software License Agreement
  12   12   * specifies the terms and conditions for redistribution.
  13   13   */
  14   14  
  15      -#pragma ident   "%Z%%M% %I%     %E% SMI"
       15 +/*
       16 + * Copyright (c) 2018, Joyent, Inc.
       17 + */
  16   18  
  17   19  #include <stdio.h>
  18   20  #include <locale.h>
  19   21  #include <wctype.h>
  20   22  #include <widec.h>
  21   23  #include <euc.h>
  22   24  #include <getwidth.h>
  23   25  #include <limits.h>
  24   26  #include <stdlib.h>
  25   27  #include <curses.h>
↓ open down ↓ 427 lines elided ↑ open up ↑
 453  455                          if (!scp) {
 454  456                                  (void) fprintf(stderr, "malloc failed\n");
 455  457                                  exit(1);
 456  458                          }
 457  459                          /* get the new address of cp */
 458  460                          cp = scp + pos;
 459  461                          szbf += n * MEMFCT;
 460  462                          tszbf += n * MEMFCT;
 461  463                  }
 462  464                  tszbf -= n;
 463      -                 *cp++ = cx;
      465 +                *cp++ = cx;
 464  466                  while (--n > 0) {
 465  467                          *cp++ = cx;
 466  468                          i++;
 467  469                  }
 468  470          }
 469  471          for (*cp = L' '; *cp == L' '; cp--)
 470  472                  *cp = L'\0';
 471  473          for (cp = scp; *cp; cp++)
 472  474                  (void) putwchar(*cp);
 473  475          (void) putwchar(L'\n');
↓ open down ↓ 183 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX