From e0b2a5b339c89dccabc683c04970ca9e8c870ac0 Mon Sep 17 00:00:00 2001 From: stefanf Date: Sun, 11 Jul 2004 17:37:33 +0000 Subject: Fix a few cases that relied on 'implicit int' (constraint violation in C99). --- usr.bin/gprof/gprof.c | 2 +- usr.bin/nfsstat/nfsstat.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.bin') diff --git a/usr.bin/gprof/gprof.c b/usr.bin/gprof/gprof.c index 1ddc4f1..cfb9fab 100644 --- a/usr.bin/gprof/gprof.c +++ b/usr.bin/gprof/gprof.c @@ -417,7 +417,7 @@ void readsamples(pfile) FILE *pfile; { - register i; + int i; intmax_t sample; if (samples == 0) { diff --git a/usr.bin/nfsstat/nfsstat.c b/usr.bin/nfsstat/nfsstat.c index 053a1ed..dda4bbb 100644 --- a/usr.bin/nfsstat/nfsstat.c +++ b/usr.bin/nfsstat/nfsstat.c @@ -91,6 +91,7 @@ char *sperc2(int, int); #define DELTA(field) (nfsstats.field - lastst.field) +int main(argc, argv) int argc; char **argv; -- cgit v1.1