Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/systat Formatting nits.



details:   https://anonhg.NetBSD.org/src/rev/407981843dd3
branches:  trunk
changeset: 475057:407981843dd3
user:      ad <ad%NetBSD.org@localhost>
date:      Fri Jul 30 16:08:59 1999 +0000

description:
Formatting nits.

diffstat:

 usr.bin/systat/ip.c  |  7 +++++--
 usr.bin/systat/tcp.c |  7 +++++--
 2 files changed, 10 insertions(+), 4 deletions(-)

diffs (84 lines):

diff -r 1cd50a819103 -r 407981843dd3 usr.bin/systat/ip.c
--- a/usr.bin/systat/ip.c       Fri Jul 30 16:04:41 1999 +0000
+++ b/usr.bin/systat/ip.c       Fri Jul 30 16:08:59 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip.c,v 1.1 1999/05/30 20:26:21 ad Exp $ */
+/*     $NetBSD: ip.c,v 1.2 1999/07/30 16:08:59 ad Exp $ */
 
 /*
  * Copyright (c) 1999 Andy Doran <ad%NetBSD.org@localhost>
@@ -29,7 +29,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: ip.c,v 1.1 1999/05/30 20:26:21 ad Exp $");
+__RCSID("$NetBSD: ip.c,v 1.2 1999/07/30 16:08:59 ad Exp $");
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -91,6 +91,7 @@
 void
 labelip(void)
 {
+
        wmove(wnd, 0, 0); wclrtoeol(wnd);
 
        LHD(0,  "total packets received");      
@@ -180,6 +181,7 @@
 int
 initip(void)
 {
+
        if (namelist[0].n_type == 0) {
                if (kvm_nlist(kd, namelist)) {
                        nlisterr(namelist);
@@ -196,6 +198,7 @@
 void
 fetchip(void)
 {
+
        KREAD((void *)namelist[0].n_value, &curstat.i, sizeof(curstat.i));
        KREAD((void *)namelist[1].n_value, &curstat.u, sizeof(curstat.u));
 }
diff -r 1cd50a819103 -r 407981843dd3 usr.bin/systat/tcp.c
--- a/usr.bin/systat/tcp.c      Fri Jul 30 16:04:41 1999 +0000
+++ b/usr.bin/systat/tcp.c      Fri Jul 30 16:08:59 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tcp.c,v 1.1 1999/05/30 20:26:21 ad Exp $ */
+/*     $NetBSD: tcp.c,v 1.2 1999/07/30 16:08:59 ad Exp $ */
 
 /*
  * Copyright (c) 1999 Andy Doran <ad%NetBSD.org@localhost>
@@ -29,7 +29,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: tcp.c,v 1.1 1999/05/30 20:26:21 ad Exp $");
+__RCSID("$NetBSD: tcp.c,v 1.2 1999/07/30 16:08:59 ad Exp $");
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -88,6 +88,7 @@
 void
 labeltcp(void)
 {
+
        wmove(wnd, 0, 0); wclrtoeol(wnd);
 
        LHD(0,  "connections initiated");               
@@ -211,6 +212,7 @@
 int
 inittcp(void)
 {
+
        if (namelist[0].n_type == 0) {
                if (kvm_nlist(kd, namelist)) {
                        nlisterr(namelist);
@@ -227,6 +229,7 @@
 void
 fetchtcp(void)
 {
+
        oldstat = curstat;
        KREAD((void *)namelist[0].n_value, &curstat, sizeof(curstat));
 }



Home | Main Index | Thread Index | Old Index