From 073d9d9542e98bf741695ebecb3250627b555f85 Mon Sep 17 00:00:00 2001 From: bde Date: Thu, 11 Mar 2004 10:19:45 +0000 Subject: Fixed misspellings of 0 as NULL. --- usr.bin/netstat/mbuf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin/netstat/mbuf.c') 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); } -- cgit v1.1