summaryrefslogtreecommitdiff
path: root/getloadavg.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2002-10-14 21:54:04 +0000
committerPaul Smith <psmith@gnu.org>2002-10-14 21:54:04 +0000
commit6374309c6d4d17ab1e4109133ab8aad55f77d51c (patch)
tree91011a11f637df979b9c5dd8b0f1fc4bfc2be831 /getloadavg.c
parent8bbdbb02b30ffd39c2fac9259b3a91cb62e1711d (diff)
downloadgunmake-6374309c6d4d17ab1e4109133ab8aad55f77d51c.tar.gz
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.
Diffstat (limited to 'getloadavg.c')
-rw-r--r--getloadavg.c8
1 files changed, 2 insertions, 6 deletions
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;