diff options
author | Jim Meyering <jim@meyering.net> | 2003-09-10 08:44:15 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-09-10 08:44:15 +0000 |
commit | 8f4368f10bbd734b9457debd450dbf95c0fbf39a (patch) | |
tree | 226d71385d139960930212b67d6f3911833f5cc7 | |
parent | dfd16eff6d2430b18f383ae3c717706ddaafdf6d (diff) | |
download | coreutils-8f4368f10bbd734b9457debd450dbf95c0fbf39a.tar.xz |
(getloadavg, main): Define via prototypes.
-rw-r--r-- | lib/getloadavg.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/getloadavg.c b/lib/getloadavg.c index 84de7dbbc..6ac0a8c5d 100644 --- a/lib/getloadavg.c +++ b/lib/getloadavg.c @@ -1,7 +1,7 @@ /* Get the system load averages. Copyright (C) 1985, 1986, 1987, 1988, 1989, 1991, 1992, 1993, 1994, - 1995, 1997, 2003 Free Software Foundation, Inc. + 1995, 1997, 1999, 2000, 2003 Free Software Foundation, Inc. NOTE: The canonical source of this file is maintained with gnulib. Bugs can be reported to bug-gnulib@gnu.org. @@ -505,9 +505,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. */ @@ -999,9 +997,7 @@ getloadavg (loadavg, nelem) #ifdef TEST void -main (argc, argv) - int argc; - char **argv; +main (int argc, char **argv) { int naptime = 0; |