diff options
author | bde <bde@FreeBSD.org> | 2004-03-11 10:19:45 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2004-03-11 10:19:45 +0000 |
commit | 073d9d9542e98bf741695ebecb3250627b555f85 (patch) | |
tree | 0a8d5fb13307b22e4c00049ac6898e008b29f3ab /usr.bin/netstat/mbuf.c | |
parent | 3c804431a011cfce68ff263668813a05a84c9bd8 (diff) | |
download | FreeBSD-src-073d9d9542e98bf741695ebecb3250627b555f85.zip FreeBSD-src-073d9d9542e98bf741695ebecb3250627b555f85.tar.gz |
Fixed misspellings of 0 as NULL.
Diffstat (limited to 'usr.bin/netstat/mbuf.c')
-rw-r--r-- | usr.bin/netstat/mbuf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/netstat/mbuf.c b/usr.bin/netstat/mbuf.c index c50fe9d..aa6a8d2 100644 --- a/usr.bin/netstat/mbuf.c +++ b/usr.bin/netstat/mbuf.c @@ -336,11 +336,11 @@ mbpr(u_long mbaddr, u_long mbtaddr __unused, u_long nmbcaddr, u_long nmbufaddr, printf("\t%.1f%% of cluster map consumed\n", totspace[1] * 100.0 / (nmbclusters * MCLBYTES)); mlen = sizeof(nsfbufs); - if (!sysctlbyname("kern.ipc.nsfbufs", &nsfbufs, &mlen, NULL, NULL) && + if (!sysctlbyname("kern.ipc.nsfbufs", &nsfbufs, &mlen, NULL, 0) && !sysctlbyname("kern.ipc.nsfbufsused", &nsfbufsused, &mlen, NULL, - NULL) && + 0) && !sysctlbyname("kern.ipc.nsfbufspeak", &nsfbufspeak, &mlen, NULL, - NULL)) { + 0)) { printf("%d/%d/%d sfbufs in use (current/peak/max)\n", nsfbufsused, nsfbufspeak, nsfbufs); } |