aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/auxstats
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-10-31 01:15:30 +0000
committerrsc <devnull@localhost>2005-10-31 01:15:30 +0000
commit663ddde9d07417ab51239c0c4305708a1a319c62 (patch)
treed7edca1f56f055d67b7075203d7c3f125ea9947e /src/cmd/auxstats
parenteb2e77a969b74b7199959cd661bb00ab4edaa1d9 (diff)
downloadplan9port-663ddde9d07417ab51239c0c4305708a1a319c62.tar.gz
plan9port-663ddde9d07417ab51239c0c4305708a1a319c62.tar.bz2
plan9port-663ddde9d07417ab51239c0c4305708a1a319c62.zip
More fixes.
Diffstat (limited to 'src/cmd/auxstats')
-rw-r--r--src/cmd/auxstats/Darwin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/auxstats/Darwin.c b/src/cmd/auxstats/Darwin.c
index d74efaae..484f28bd 100644
--- a/src/cmd/auxstats/Darwin.c
+++ b/src/cmd/auxstats/Darwin.c
@@ -149,7 +149,7 @@ samplenet(void)
* won't be required.
*/
void
-samplevents(void)
+sampleevents(void)
{
uint i, j, pcnt, tcnt;
mach_msg_type_number_t count;
@@ -241,7 +241,7 @@ xsample(int first)
len = sizeof sample.xsu;
sample.xsu_valid = TRUE;
if(sysctl(mib, 2, &sample.xsu, &len, NULL, 0) < 0 && errno == ENOENT)
- sample.xsu_value = FALSE;
+ sample.xsu_valid = FALSE;
samplenet();
sampleevents();