diff options
Diffstat (limited to 'libexec/atrun/gloadavg.c')
-rw-r--r-- | libexec/atrun/gloadavg.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/libexec/atrun/gloadavg.c b/libexec/atrun/gloadavg.c index 289fa29..40e8713 100644 --- a/libexec/atrun/gloadavg.c +++ b/libexec/atrun/gloadavg.c @@ -23,6 +23,11 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#ifndef lint +static const char rcsid[] = + "$Id$"; +#endif /* not lint */ + #ifndef __FreeBSD__ #define _POSIX_SOURCE 1 @@ -37,12 +42,10 @@ #include "gloadavg.h" -/* File scope variables */ - -static char rcsid[] = "$Id$"; - /* Global functions */ +void perr(const char *a); + double gloadavg(void) /* return the current load average as a floating point number, or <0 for @@ -63,7 +66,7 @@ gloadavg(void) } #else if (getloadavg(&result, 1) != 1) - perr("Error in getloadavg"); + perr("error in getloadavg"); #endif return result; } |