From cbeb0b26e4c7caa8d1b47de791a7418dc20a4567 Mon Sep 17 00:00:00 2001 From: rsc Date: Sat, 1 Apr 2006 19:24:03 +0000 Subject: Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. --- src/cmd/auxstats/Darwin.c | 10 +++++----- src/cmd/auxstats/FreeBSD.c | 2 +- src/cmd/auxstats/OpenBSD.c | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src/cmd/auxstats') diff --git a/src/cmd/auxstats/Darwin.c b/src/cmd/auxstats/Darwin.c index 168d866c..07f3596c 100644 --- a/src/cmd/auxstats/Darwin.c +++ b/src/cmd/auxstats/Darwin.c @@ -88,7 +88,7 @@ sampleinit(void) if(host_page_size(stat_port, &sample.pgsize) != KERN_SUCCESS) sample.pgsize = 4096; - // populate clock tick info for timestamps + /* populate clock tick info for timestamps */ mach_timebase_info(&info); sample.divisor = 1000.0 * (double)info.denom/info.numer; sample.time = mach_absolute_time(); @@ -361,10 +361,10 @@ xvm(int first) isys("vm.stats.vm.v_rforks") +isys("vm.stats.vm.v_vforks")); -// Bprint(&bout, "hits %lud of %lud lookups (%d%% hit rate)\n", -// (asamp.vm_stat.hits), -// (asamp.vm_stat.lookups), -// (natural_t)(((double)asamp.vm_stat.hits*100)/ (double)asamp.vm_stat.lookups)); +/* Bprint(&bout, "hits %lud of %lud lookups (%d%% hit rate)\n", */ +/* (asamp.vm_stat.hits), */ +/* (asamp.vm_stat.lookups), */ +/* (natural_t)(((double)asamp.vm_stat.hits*100)/ (double)asamp.vm_stat.lookups)); */ } void diff --git a/src/cmd/auxstats/FreeBSD.c b/src/cmd/auxstats/FreeBSD.c index 4e8e75bc..19ae96b1 100644 --- a/src/cmd/auxstats/FreeBSD.c +++ b/src/cmd/auxstats/FreeBSD.c @@ -47,7 +47,7 @@ static kvm_t *kvm; static struct nlist nl[] = { { "_ifnet" }, { "_cp_time" }, - { "" }, + { "" } }; void diff --git a/src/cmd/auxstats/OpenBSD.c b/src/cmd/auxstats/OpenBSD.c index 32a473f6..ee84dea1 100644 --- a/src/cmd/auxstats/OpenBSD.c +++ b/src/cmd/auxstats/OpenBSD.c @@ -41,7 +41,7 @@ static kvm_t *kvm; static struct nlist nl[] = { { "_ifnet" }, { "_cp_time" }, - { "" }, + { "" } }; void @@ -220,4 +220,4 @@ xsysctl(int first) Bprint(&bout, "fork %ud 1000\n", vm.forks); Bprint(&bout, "swap =%lud %lud\n", vm.swpginuse*pgsize, vm.swpages*pgsize); -} \ No newline at end of file +} -- cgit v1.2.3