diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2002-09-04 23:29:10 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2002-09-04 23:29:10 +0000 |
commit | b4339b74aded4c38ebcfe3a2a9b37b900abb8874 (patch) | |
tree | fb230419005f211ecea1e667385bde9886dbf0d8 /usr.bin/time | |
parent | 228b93ce829543fee06561687a63c17a7e821dfd (diff) | |
download | FreeBSD-src-b4339b74aded4c38ebcfe3a2a9b37b900abb8874.zip FreeBSD-src-b4339b74aded4c38ebcfe3a2a9b37b900abb8874.tar.gz |
ANSIify function definitions.
Add some constness to avoid some warnings.
Remove use register keyword.
Deal with missing/unneeded extern/prototypes.
Some minor type changes/casts to avoid warnings.
Reviewed by: md5
Diffstat (limited to 'usr.bin/time')
-rw-r--r-- | usr.bin/time/time.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/usr.bin/time/time.c b/usr.bin/time/time.c index 88178a3..c7a2486 100644 --- a/usr.bin/time/time.c +++ b/usr.bin/time/time.c @@ -68,11 +68,9 @@ static void usage(void); static char decimal_point; int -main(argc, argv) - int argc; - char **argv; +main(int argc, char **argv) { - register int pid; + int pid; int aflag, ch, hflag, lflag, status, pflag; struct timeval before, after; struct rusage ru; @@ -223,7 +221,7 @@ main(argc, argv) } static void -usage() +usage(void) { fprintf(stderr, "usage: time [-al] [-h|-p] [-o file] utility [argument ...]\n"); @@ -234,7 +232,7 @@ usage() * Return the frequency of the kernel's statistics clock. */ static int -getstathz() +getstathz(void) { struct clockinfo clockrate; int mib[2]; @@ -249,10 +247,7 @@ getstathz() } static void -humantime(out, sec, usec) - FILE *out; - long sec; - long usec; +humantime(FILE *out, long sec, long usec) { long days, hrs, mins; |