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/cmd-inet/usr.bin/finger.c
          +++ new/usr/src/cmd/cmd-inet/usr.bin/finger.c
↓ open down ↓ 30 lines elided ↑ open up ↑
  31   31   * Copyright (c) 1982, 1986, 1988
  32   32   * The Regents of the University of California
  33   33   * All Rights Reserved
  34   34   *
  35   35   * Portions of this document are derived from
  36   36   * software developed by the University of California, Berkeley, and its
  37   37   * contributors.
  38   38   */
  39   39  
  40   40  /*
       41 + * Copyright (c) 2018, Joyent, Inc.
       42 + */
       43 +
       44 +/*
  41   45   * This is a finger program.  It prints out useful information about users
  42   46   * by digging it up from various system files.
  43   47   *
  44   48   * There are three output formats, all of which give login name, teletype
  45   49   * line number, and login time.  The short output format is reminiscent
  46   50   * of finger on ITS, and gives one line of information per user containing
  47   51   * in addition to the minimum basic requirements (MBR), the user's full name,
  48   52   * idle time and location.
  49   53   * The quick style output is UNIX who-like, giving only name, teletype and
  50   54   * login time.  Finally, the long style output give the same information
↓ open down ↓ 1301 lines elided ↑ open up ↑
1352 1356  uid_t   PlanPrinted[PPMAX+1];
1353 1357  int     PPIndex = 0;            /* index of next unused table entry */
1354 1358  
1355 1359  int
1356 1360  AlreadyPrinted(uid_t uid)
1357 1361  {
1358 1362          int i = 0;
1359 1363  
1360 1364          while (i++ < PPIndex) {
1361 1365                  if (PlanPrinted[i] == uid)
1362      -                return (1);
     1366 +                        return (1);
1363 1367          }
1364 1368          if (i < PPMAX) {
1365 1369                  PlanPrinted[i] = uid;
1366 1370                  PPIndex++;
1367 1371          }
1368 1372          return (0);
1369 1373  }
1370 1374  
1371 1375  #define FIFOREADTIMEOUT (60)    /* read timeout on select */
1372 1376  /* BEGIN CSTYLED */
↓ open down ↓ 163 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX