From 6374309c6d4d17ab1e4109133ab8aad55f77d51c Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Mon, 14 Oct 2002 21:54:04 +0000 Subject: Convert the source code to use ANSI C style function definitions and enable the automake ansi2knr capability. Right now this doesn't quite build using a K&R compiler because of a problem with the loadavg test program, but the rest of the code works. I'm asking the automake list about this problem. --- getloadavg.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'getloadavg.c') diff --git a/getloadavg.c b/getloadavg.c index 7d575cd..c4d9746 100644 --- a/getloadavg.c +++ b/getloadavg.c @@ -498,9 +498,7 @@ static kvm_t *kd; or -1 if an error occurred. */ int -getloadavg (loadavg, nelem) - double loadavg[]; - int nelem; +getloadavg (double loadavg[], int nelem) { int elem = 0; /* Return value. */ @@ -994,9 +992,7 @@ getloadavg (loadavg, nelem) #include "make.h" int -main (argc, argv) - int argc; - char **argv; +main (int argc, char **argv) { int naptime = 0; -- cgit v1.2.3