Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/pstat - Fix indentation.



details:   https://anonhg.NetBSD.org/src/rev/d8cdbb2d6009
branches:  trunk
changeset: 522583:d8cdbb2d6009
user:      enami <enami%NetBSD.org@localhost>
date:      Fri Feb 22 04:27:30 2002 +0000

description:
- Fix indentation.
- Wrap long line.
- Kill unnecessary empty line.

diffstat:

 usr.sbin/pstat/pstat.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 8c4073017bf3 -r d8cdbb2d6009 usr.sbin/pstat/pstat.c
--- a/usr.sbin/pstat/pstat.c    Fri Feb 22 03:24:09 2002 +0000
+++ b/usr.sbin/pstat/pstat.c    Fri Feb 22 04:27:30 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pstat.c,v 1.63 2002/02/21 10:58:00 enami Exp $ */
+/*     $NetBSD: pstat.c,v 1.64 2002/02/22 04:27:30 enami Exp $ */
 
 /*-
  * Copyright (c) 1980, 1991, 1993, 1994
@@ -43,7 +43,7 @@
 #if 0
 static char sccsid[] = "@(#)pstat.c    8.16 (Berkeley) 5/9/95";
 #else
-__RCSID("$NetBSD: pstat.c,v 1.63 2002/02/21 10:58:00 enami Exp $");
+__RCSID("$NetBSD: pstat.c,v 1.64 2002/02/22 04:27:30 enami Exp $");
 #endif
 #endif /* not lint */
 
@@ -458,7 +458,6 @@
        if (flag == 0)
                *flags++ = '-';
        *flags = '\0';
-
 }
 
 void
@@ -745,7 +744,8 @@
        return (beg);
 }
 
-const char hdr[]="  LINE RAW CAN OUT  HWT LWT     COL STATE  SESS      PGID DISC\n";
+const char hdr[] =
+    "  LINE RAW CAN OUT  HWT LWT     COL STATE  SESS      PGID DISC\n";
 int ttyspace = 128;
 
 void
@@ -803,7 +803,7 @@
                (void)printf("%-7s ", name);
        (void)printf("%2d %3d ", tp->t_rawq.c_cc, tp->t_canq.c_cc);
        (void)printf("%3d %4d %3d %7d ", tp->t_outq.c_cc,
-               tp->t_hiwat, tp->t_lowat, tp->t_column);
+           tp->t_hiwat, tp->t_lowat, tp->t_column);
        for (i = j = 0; ttystates[i].flag; i++)
                if (tp->t_state&ttystates[i].flag)
                        state[j++] = ttystates[i].val;
@@ -818,7 +818,7 @@
                KGET2(&tp->t_pgrp->pg_id, &pgid, sizeof(pid_t), "pgid");
        (void)printf("%6d ", pgid);
        KGET2(tp->t_linesw, &t_linesw, sizeof(t_linesw),
-               "line discipline switch table");
+           "line discipline switch table");
        name = t_linesw.l_name;
        for (;;) {
                KGET2(name, &buffer, sizeof(buffer), "line discipline name");



Home | Main Index | Thread Index | Old Index