summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat/mbuf.c
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2008-01-02 23:26:11 +0000
committerobrien <obrien@FreeBSD.org>2008-01-02 23:26:11 +0000
commit74070565806ee33326b76dcdd5e1e0a86cd4e6ed (patch)
treec9e471757da087ea1d56d2bb2d36eec3defb7135 /usr.bin/netstat/mbuf.c
parent34e034ebc6ca1e6cb030e381b5f003c30215034e (diff)
downloadFreeBSD-src-74070565806ee33326b76dcdd5e1e0a86cd4e6ed.zip
FreeBSD-src-74070565806ee33326b76dcdd5e1e0a86cd4e6ed.tar.gz
style(9)
+ kread is not a boolean, so check it as such + fix $FreeBSD$ Ids + denote copyrights with /*- + misc whitespace changes.
Diffstat (limited to 'usr.bin/netstat/mbuf.c')
-rw-r--r--usr.bin/netstat/mbuf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/netstat/mbuf.c b/usr.bin/netstat/mbuf.c
index 7e09a1e..7f65701 100644
--- a/usr.bin/netstat/mbuf.c
+++ b/usr.bin/netstat/mbuf.c
@@ -1,4 +1,4 @@
-/*
+/*-
* Copyright (c) 1983, 1988, 1993
* The Regents of the University of California.
* Copyright (c) 2005 Robert N. M. Watson
@@ -300,7 +300,7 @@ mbpr(void *kvmd, u_long mbaddr)
goto out;
}
} else {
- if (kread(mbaddr, (char *)&mbstat, sizeof mbstat))
+ if (kread(mbaddr, (char *)&mbstat, sizeof mbstat) != 0)
goto out;
}
printf("%lu requests for sfbufs denied\n", mbstat.sf_allocfail);
OpenPOWER on IntegriCloud